src/extPrograms.cc

changeset 880
5dcd2e741d1c
parent 879
c5b3bc08e609
child 882
2f3cc8e045d5
--- a/src/extPrograms.cc	Sat Sep 06 20:40:58 2014 +0300
+++ b/src/extPrograms.cc	Sat Sep 06 23:18:26 2014 +0300
@@ -281,9 +281,9 @@
 	if (not err.isEmpty())
 	{
 		CriticalError (format ("%1 failed: %2\n", g_extProgNames[prog], err));
-
 		QString filename ("externalProgramOutput.txt");
 		QFile file (filename);
+
 		if (file.open (QIODevice::WriteOnly | QIODevice::Text))
 		{
 			file.write (proc.readAllStandardOutput());
@@ -295,6 +295,7 @@
 			print ("Couldn't open %1 for writing: %2",
 				QFileInfo (filename).absoluteFilePath(), file.errorString());
 		}
+
 		return false;
 	}
 

mercurial