actually use the temp variable we just assigned ...
Change-Id: I535a4bfc268a07d6b1813e47cdae862e5e459efc Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
parent
64d03e1c34
commit
dd06f991af
@ -385,16 +385,16 @@ SubdirsMetaMakefileGenerator::write()
|
||||
const QString &output_name = Option::output.fileName();
|
||||
for(int i = 0; ret && i < subs.count(); i++) {
|
||||
const Subdir *sub = subs.at(i);
|
||||
qmake_setpwd(subs.at(i)->input_dir);
|
||||
Option::output_dir = QFileInfo(subs.at(i)->output_dir).absoluteFilePath();
|
||||
Option::output.setFileName(subs.at(i)->output_file);
|
||||
qmake_setpwd(sub->input_dir);
|
||||
Option::output_dir = QFileInfo(sub->output_dir).absoluteFilePath();
|
||||
Option::output.setFileName(sub->output_file);
|
||||
if(i != subs.count()-1) {
|
||||
for (int ind = 0; ind < sub->indent; ++ind)
|
||||
printf(" ");
|
||||
printf("Writing %s\n", QDir::cleanPath(Option::output_dir+"/"+
|
||||
Option::output.fileName()).toLatin1().constData());
|
||||
}
|
||||
if (!(ret = subs.at(i)->makefile->write()))
|
||||
if (!(ret = sub->makefile->write()))
|
||||
break;
|
||||
//restore because I'm paranoid
|
||||
qmake_setpwd(pwd);
|
||||
|
Loading…
Reference in New Issue
Block a user