summary refs log tree commit diff
path: root/src/TextInputWidget.cpp
diff options
context:
space:
mode:
authorAdasauce <adasauce@with.parts>2020-02-14 21:35:26 -0400
committerAdasauce <adasauce@with.parts>2020-02-14 21:35:26 -0400
commitcb360508226a320846660709f26457a54782b164 (patch)
tree017e53524b4e904888393d90c61b8a1337f0871a /src/TextInputWidget.cpp
parentuse the standard system download path for downloads (diff)
downloadnheko-cb360508226a320846660709f26457a54782b164.tar.xz
use QStandardPaths locations for all file dialogs.
Diffstat (limited to '')
-rw-r--r--src/TextInputWidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp

index ce0c7cb8..11f7ddda 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -626,8 +626,9 @@ TextInputWidget::command(QString command, QString args) void TextInputWidget::openFileSelection() { + const QString homeFolder = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); const auto fileName = - QFileDialog::getOpenFileName(this, tr("Select a file"), "", tr("All Files (*)")); + QFileDialog::getOpenFileName(this, tr("Select a file"), homeFolder, tr("All Files (*)")); if (fileName.isEmpty()) return;