QMake: Fix generation of Visual Studio filter files
This amends commit a0a990863fa54b52db5e97716b130f69de47fa52. We bailed out of writing the filter file if opening the file for writing was successful. The condition must be flipped. Change-Id: I24331c5374a25c5a1126c6f7f71d41d840e0e532 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
parent
39bbfce9b6
commit
02b55967d5
@ -754,7 +754,7 @@ void VCXProjectWriter::write(XmlOutput &xml, VCProject &tool)
|
||||
// The file filters are added in a separate file for MSBUILD.
|
||||
QFile filterFile;
|
||||
filterFile.setFileName(Option::output.fileName().append(".filters"));
|
||||
if (filterFile.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
|
||||
if (!filterFile.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
|
||||
warn_msg(WarnLogic, "Cannot open output filter file");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user