[Kst] branches/work/kst/portto4/kst/src/libkstapp

Peter Kümmel syntheticpp at gmx.net
Fri Oct 19 20:43:33 UTC 2012


SVN commit 1321477 by kuemmel:

maybe the log contains some error details

 M  +4 -3      mainwindow.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/mainwindow.cpp #1321476:1321477
@@ -453,9 +453,10 @@
   QApplication::restoreOverrideCursor();
 
   if (!ok) {
-    QMessageBox::critical(this, tr("Kst"),
-        tr("Error opening document '%1':\n%2\n"
-           ).arg(file, _doc->lastError()));
+    QString lastError = _doc->lastError();
+    if (lastError.isEmpty())
+      lastError = tr("For details see Help->Debug Dialog->Log.");
+    QMessageBox::critical(this, tr("Kst"),tr("Error opening document:\n  '%1'\n%2\n").arg(file, lastError));
   }
 
   setWindowTitle("Kst - " + file);


More information about the Kst mailing list