use QStandardPaths locations for all file dialogs.
This commit is contained in:
parent
17b5cc32dc
commit
cb36050822
4 changed files with 15 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue