[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Feb 17 20:56:15 CET 2005
CVS commit by staikos:
dump the list of problematic objects to make it easier to debug a broken .kst
file
M +11 -1 kstdoc.cpp 1.149
--- kdeextragear-2/kst/kst/kstdoc.cpp #1.148:1.149
@@ -34,4 +34,5 @@
#include <dcopclient.h>
#include <kdebug.h>
+#include <kdeversion.h>
#include <kfiledialog.h>
#include <kmessagebox.h>
@@ -435,5 +436,14 @@ bool KstDoc::openDocument(const KURL& ur
if (!bitBucket.isEmpty()) {
- KMessageBox::sorry(0L, i18n("The Kst file could not be loaded in its entirety due to missing objects or data."));
+ QStringList names;
+ for (KstDataObjectList::Iterator i = bitBucket.begin(); i != bitBucket.end(); ++i) {
+ names += (*i)->tagName();
+ }
+
+#if KDE_VERSION < KDE_MAKE_VERSION(3,3,90)
+ KMessageBox::informationList(0L, i18n("The Kst file could not be loaded in its entirety due to missing objects or data."), names);
+#else
+ KMessageBox::errorList(0L, i18n("The Kst file could not be loaded in its entirety due to missing objects or data."), names);
+#endif
}
More information about the Kst
mailing list