summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-10-02 16:12:14 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2014-12-15 22:53:41 +0100
commitcef5e1018e6e4c4d2aa8422e789bc0d79d310e52 (patch)
treeb811efa25e7104898454b4d5f9ae909a727eccb7
parentdc3ae2aeb9919b0a45d9ff2dfe07d26a9625e57d (diff)
qeditor: change setting names, they were inconsistent
Change-Id: I47c94520749d0cef1e602c7c62c685a8a3703258 Reviewed-on: http://gerrit.rockbox.org/1000 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
-rw-r--r--utils/regtools/qeditor/regedit.cpp4
-rw-r--r--utils/regtools/qeditor/regtab.cpp4
-rw-r--r--utils/regtools/qeditor/utils.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/utils/regtools/qeditor/regedit.cpp b/utils/regtools/qeditor/regedit.cpp
index 5a32defb58..9dca6280e0 100644
--- a/utils/regtools/qeditor/regedit.cpp
+++ b/utils/regtools/qeditor/regedit.cpp
@@ -1022,12 +1022,12 @@ bool RegEdit::GetFilename(QString& filename, bool save)
if(save)
fd->setAcceptMode(QFileDialog::AcceptSave);
fd->setFilter("Description files (*.xml);;All files (*)");
- fd->setDirectory(Settings::Get()->value("loaddescdir", QDir::currentPath()).toString());
+ fd->setDirectory(Settings::Get()->value("regedit/loaddescdir", QDir::currentPath()).toString());
if(fd->exec())
{
QStringList filenames = fd->selectedFiles();
filename = filenames[0];
- Settings::Get()->setValue("loaddescdir", fd->directory().absolutePath());
+ Settings::Get()->setValue("regedit/loaddescdir", fd->directory().absolutePath());
return true;
}
else
diff --git a/utils/regtools/qeditor/regtab.cpp b/utils/regtools/qeditor/regtab.cpp
index 3a1c702dc7..b80ab57ecf 100644
--- a/utils/regtools/qeditor/regtab.cpp
+++ b/utils/regtools/qeditor/regtab.cpp
@@ -412,11 +412,11 @@ void RegTab::OnDumpRegs(bool c)
QFileDialog *fd = new QFileDialog(this);
fd->setAcceptMode(QFileDialog::AcceptSave);
fd->setFilter("Textual files (*.txt);;All files (*)");
- fd->setDirectory(Settings::Get()->value("loaddatadir", QDir::currentPath()).toString());
+ fd->setDirectory(Settings::Get()->value("regtab/loaddatadir", QDir::currentPath()).toString());
if(!fd->exec())
return;
QStringList filenames = fd->selectedFiles();
- Settings::Get()->setValue("loaddatadir", fd->directory().absolutePath());
+ Settings::Get()->setValue("regtab/loaddatadir", fd->directory().absolutePath());
BackendHelper bh(m_io_backend, m_cur_soc);
if(!bh.DumpAllRegisters(filenames[0]))
{
diff --git a/utils/regtools/qeditor/utils.cpp b/utils/regtools/qeditor/utils.cpp
index da5e44ab71..4f408b4765 100644
--- a/utils/regtools/qeditor/utils.cpp
+++ b/utils/regtools/qeditor/utils.cpp
@@ -885,14 +885,14 @@ void BackendSelector::OnDataSelChanged(int index)
#endif
QFileDialog *fd = new QFileDialog(m_data_selector);
fd->setFilter("Textual files (*.txt);;All files (*)");
- fd->setDirectory(Settings::Get()->value("loaddatadir", QDir::currentPath()).toString());
+ fd->setDirectory(Settings::Get()->value("regtab/loaddatadir", QDir::currentPath()).toString());
if(fd->exec())
{
QStringList filenames = fd->selectedFiles();
ChangeBackend(m_backend->CreateFileIoBackend(filenames[0]));
m_data_sel_edit->setText(filenames[0]);
}
- Settings::Get()->setValue("loaddatadir", fd->directory().absolutePath());
+ Settings::Get()->setValue("regtab/loaddatadir", fd->directory().absolutePath());
}
#ifdef HAVE_HWSTUB
else if(var == DataSelDevice)