[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkstapp
From:       Peter Kümmel <syntheticpp () gmx ! net>
Date:       2012-10-19 20:43:33
Message-ID: 20121019204333.563C0AC854 () svn ! kde ! org
[Download RAW message or body]

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);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic