From dbdc2538f98147c7661cac00fe135df59aeb04e3 Mon Sep 17 00:00:00 2001 From: Tannin Date: Mon, 11 May 2015 21:39:56 +0200 Subject: bugfix: upon closing the profiles dialog, the profile was changed to the top-most profile and back --- src/profilesdialog.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/profilesdialog.h') diff --git a/src/profilesdialog.h b/src/profilesdialog.h index 5cb5a449..6dd0c1d4 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -46,11 +46,11 @@ public: /** * @brief constructor * - * @param gamePath the path to the game directory + * @param profileName currently enabled profile * @param parent parent widget * @todo the game path could be retrieved from GameInfo just as easily **/ - explicit ProfilesDialog(const QString &gamePath, QWidget *parent = 0); + explicit ProfilesDialog(const QString &profileName, QWidget *parent = 0); ~ProfilesDialog(); /** @@ -65,7 +65,7 @@ protected: private: - void addItem(const QString &name); + QListWidgetItem *addItem(const QString &name); void createProfile(const QString &name, bool useDefaultSettings); void createProfile(const QString &name, const Profile &reference); @@ -91,7 +91,6 @@ private slots: private: Ui::ProfilesDialog *ui; - QString m_GamePath; QListWidget *m_ProfilesList; bool m_FailState; -- cgit v1.3.1