summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)