diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-21 16:32:08 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-21 16:32:08 +0000 |
| commit | be3f9d5dbc8c3d5dbac6c77b82a47ce771ed5418 (patch) | |
| tree | 8f44e3ed0cc3c560bbc1e062956717f398cc3999 /src/plugins | |
| parent | 94cedead2210f926a553ff64fbd8e2a81e58e925 (diff) | |
| download | qmmp-be3f9d5dbc8c3d5dbac6c77b82a47ce771ed5418.tar.gz qmmp-be3f9d5dbc8c3d5dbac6c77b82a47ce771ed5418.tar.bz2 qmmp-be3f9d5dbc8c3d5dbac6c77b82a47ce771ed5418.zip | |
qsui: fixed directory selection in the file system browser
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6789 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/Ui/qsui/filesystembrowser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Ui/qsui/filesystembrowser.cpp b/src/plugins/Ui/qsui/filesystembrowser.cpp index 7afae2bba..702fe4982 100644 --- a/src/plugins/Ui/qsui/filesystembrowser.cpp +++ b/src/plugins/Ui/qsui/filesystembrowser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013-2015 by Ilya Kotov * + * Copyright (C) 2013-2016 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -78,7 +78,7 @@ FileSystemBrowser::~FileSystemBrowser() { QSettings settings (Qmmp::configFile(), QSettings::IniFormat); settings.beginGroup("Simple"); - settings.setValue("fsbrowser_current_dir", m_model->rootPath()); + settings.setValue("fsbrowser_current_dir", m_model->rootDirectory().canonicalPath()); settings.endGroup(); } @@ -132,7 +132,7 @@ void FileSystemBrowser::addToPlayList() void FileSystemBrowser::selectDirectory() { QString dir = FileDialog::getExistingDirectory(qApp->activeWindow(), - tr("Select Directory"), m_model->rootPath()); + tr("Select Directory"), m_model->rootDirectory().canonicalPath()); if(!dir.isEmpty()) setCurrentDirectory(dir); } |
