Commit 02751c4950317e3113afaf90a8fc65efae9c0d44

Authored by Josh Klontz
1 parent de2f185d

fixed compile error

Showing 1 changed file with 4 additions and 4 deletions
sdk/plugins/misc.cpp
@@ -96,14 +96,14 @@ BR_REGISTER(Transform, ShowTransform) @@ -96,14 +96,14 @@ BR_REGISTER(Transform, ShowTransform)
96 class PrintTransform : public UntrainableMetaTransform 96 class PrintTransform : public UntrainableMetaTransform
97 { 97 {
98 Q_OBJECT 98 Q_OBJECT
99 - Q_PROPERTY(bool stdout READ get_stdout WRITE set_stdout RESET reset_stdout)  
100 - BR_PROPERTY(bool, stdout, true) 99 + Q_PROPERTY(bool error READ get_error WRITE set_error RESET reset_error)
  100 + BR_PROPERTY(bool, error, false)
101 101
102 void project(const Template &src, Template &dst) const 102 void project(const Template &src, Template &dst) const
103 { 103 {
104 dst = src; 104 dst = src;
105 - if (stdout) printf("%s\n", qPrintable(src.file.flat()));  
106 - else qDebug("%s\n", qPrintable(src.file.flat())); 105 + if (error) qDebug("%s\n", qPrintable(src.file.flat()));
  106 + else printf("%s\n", qPrintable(src.file.flat()));
107 } 107 }
108 }; 108 };
109 109