From 24b5ddfcbfe13a6d51365004aa276ffb269fac62 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 20 Feb 2008 19:00:29 +0000 Subject: improved general plugin configuration git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@252 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/scrobbler/scrobblerfactory.cpp | 5 ++--- src/plugins/General/scrobbler/scrobblerfactory.h | 2 +- src/plugins/General/scrobbler/settingsdialog.cpp | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/plugins/General/scrobbler') diff --git a/src/plugins/General/scrobbler/scrobblerfactory.cpp b/src/plugins/General/scrobbler/scrobblerfactory.cpp index 77bbb0f2b..7f1fe7757 100644 --- a/src/plugins/General/scrobbler/scrobblerfactory.cpp +++ b/src/plugins/General/scrobbler/scrobblerfactory.cpp @@ -38,10 +38,9 @@ General *ScrobblerFactory::create(QObject *parent) return new Scrobbler(parent); } -void ScrobblerFactory::showSettings(QWidget *parent) +QDialog *ScrobblerFactory::createConfigDialog(QWidget *parent) { - SettingsDialog *dialog = new SettingsDialog(parent); - dialog->show(); + return new SettingsDialog(parent); } void ScrobblerFactory::showAbout(QWidget *parent) diff --git a/src/plugins/General/scrobbler/scrobblerfactory.h b/src/plugins/General/scrobbler/scrobblerfactory.h index 240749714..a0bd0a626 100644 --- a/src/plugins/General/scrobbler/scrobblerfactory.h +++ b/src/plugins/General/scrobbler/scrobblerfactory.h @@ -36,7 +36,7 @@ Q_INTERFACES(GeneralFactory); public: const GeneralProperties properties() const; General *create(QObject *parent); - void showSettings(QWidget *parent); + QDialog *createConfigDialog(QWidget *parent); void showAbout(QWidget *parent); QTranslator *createTranslator(QObject *parent); diff --git a/src/plugins/General/scrobbler/settingsdialog.cpp b/src/plugins/General/scrobbler/settingsdialog.cpp index 8dc2dfe22..9280550f1 100644 --- a/src/plugins/General/scrobbler/settingsdialog.cpp +++ b/src/plugins/General/scrobbler/settingsdialog.cpp @@ -27,7 +27,6 @@ SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) { ui.setupUi(this); - setAttribute(Qt::WA_DeleteOnClose); QSettings settings(QDir::homePath()+"/.qmmp/qmmprc", QSettings::IniFormat); settings.beginGroup("Scrobbler"); ui.userLineEdit->setText(settings.value("login").toString()); -- cgit v1.2.3-13-gbd6f