From kde-commits Fri Oct 19 20:43:33 2012 From: =?utf-8?q?Peter=20K=C3=BCmmel?= Date: Fri, 19 Oct 2012 20:43:33 +0000 To: kde-commits Subject: branches/work/kst/portto4/kst/src/libkstapp Message-Id: <20121019204333.563C0AC854 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=135067942716523 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);