aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler
diff options
context:
space:
mode:
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());