[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdemultimedia/noatun/library
From: Stefan Gehn <sgehn () gmx ! net>
Date: 2004-06-12 21:12:13
Message-ID: 20040612211213.B2F9412661 () office ! kde ! org
[Download RAW message or body]
CVS commit by metz:
Show errormessage if no playlist plugin was found (install error) and exit
M +25 -8 app.cpp 1.31
--- kdemultimedia/noatun/library/app.cpp #1.30:1.31
@@ -28,4 +28,5 @@
#include <klocale.h>
#include <kmainwindow.h>
+#include <kmessagebox.h>
#include <knotifyclient.h>
#include <kpopupmenu.h>
@@ -67,4 +68,5 @@ NoatunApp::NoatunApp()
// set the default config data
+ // TODO: Maybe a first time wizard instead?
KConfig *config=KGlobal::config(); // +
config->setGroup(""); // 1
@@ -81,5 +83,5 @@ NoatunApp::NoatunApp()
} // 1
- mPref=new NoatunPreferences(0); // 115
+ mPref=new NoatunPreferences(0L); // 115
mPref->hide(); // 1
mLibraryLoader = new LibraryLoader; // 0
@@ -112,4 +114,13 @@ NoatunApp::NoatunApp()
{
loadPlugins(); // 1531
+ if (!playlist())
+ {
+ KMessageBox::error(0,i18n("No playlist plugin was found. " \
+ "Please make sure that Noatun was installed correctly."));
+ KApplication::quit();
+ delete this;
+ }
+ else
+ {
config->setGroup(""); // 0
player()->setVolume(config->readNumEntry("Volume", 100)); // 10
@@ -118,4 +129,5 @@ NoatunApp::NoatunApp()
if(autoPlay()) player()->play(); // 118
}
+ }
}
@@ -434,8 +446,13 @@ QString NoatunApp::mimeTypes()
void NoatunApp::loadPlugins()
{
+ kdDebug(66666) << k_funcinfo << "Called." << endl;
+
mLibraryLoader->loadAll();
// backup in case of trouble
if(!mLibraryLoader->playlist())
- mLibraryLoader->add("splitplaylist.plugin");
+ {
+ kdDebug(66666) << k_funcinfo << "NO playlist plugin found!" << endl;
+// mLibraryLoader->add("splitplaylist.plugin");
+ }
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic