diff options
author | 251 <13120787+251Labs@users.noreply.github.com> | 2019-04-23 13:26:06 +0200 |
---|---|---|
committer | 251 <13120787+251Labs@users.noreply.github.com> | 2019-04-23 13:26:06 +0200 |
commit | fa1c8e297825fbaeda049c8bf36f39de919a9989 (patch) | |
tree | 3057bb146de690e858fbb24f3bb7821a92f77ceb /src/qt/guiutil.cpp | |
parent | 08bd21a3bda9f621948c535e951880d7e318caa5 (diff) |
Resolve the qt/guiutil <-> qt/optionsmodal CD
This pull request attempts to resolve the `qt/guiutil` <-> `qt/optionsmodel`
circular dependency.
The circular dependency is resolved by moving the `Intro::getDefaultDataDirectory`
member function to `GUIUtil::getDefaultDataDirectory`.
Diffstat (limited to 'src/qt/guiutil.cpp')
-rw-r--r-- | src/qt/guiutil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/guiutil.cpp b/src/qt/guiutil.cpp index ba0a5abdf3..6e76555979 100644 --- a/src/qt/guiutil.cpp +++ b/src/qt/guiutil.cpp @@ -244,6 +244,11 @@ QList<QModelIndex> getEntryData(QAbstractItemView *view, int column) return view->selectionModel()->selectedRows(column); } +QString getDefaultDataDirectory() +{ + return boostPathToQString(GetDefaultDataDir()); +} + QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut) |