aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-02-20 19:00:29 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-02-20 19:00:29 +0000
commit24b5ddfcbfe13a6d51365004aa276ffb269fac62 (patch)
treec01c732d6100b4593cac185e164039a44ace4f62 /src/plugins/General/scrobbler
parentf7922b3fd6e83b04f07f036e56023017bc5bacfa (diff)
downloadqmmp-24b5ddfcbfe13a6d51365004aa276ffb269fac62.tar.gz
qmmp-24b5ddfcbfe13a6d51365004aa276ffb269fac62.tar.bz2
qmmp-24b5ddfcbfe13a6d51365004aa276ffb269fac62.zip
improved general plugin configuration
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@252 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler')
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.cpp5
-rw-r--r--src/plugins/General/scrobbler/scrobblerfactory.h2
-rw-r--r--src/plugins/General/scrobbler/settingsdialog.cpp1
3 files changed, 3 insertions, 5 deletions
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());