diff options
author | saturneric <[email protected]> | 2025-04-18 00:06:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-18 00:06:40 +0000 |
commit | 0261c780976d8ac650006916dcc2688582f4922e (patch) | |
tree | 6839e6738ec4c5d2447b3e60f7a974752050898e /src/ui/widgets/TextEdit.cpp | |
parent | fix: add missing libGLESv2.dll on windows platform (diff) | |
download | GpgFrontend-0261c780976d8ac650006916dcc2688582f4922e.tar.gz GpgFrontend-0261c780976d8ac650006916dcc2688582f4922e.zip |
fix: issues found by testing
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/TextEdit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/widgets/TextEdit.cpp b/src/ui/widgets/TextEdit.cpp index 5cb5d269..4f0fdd6f 100644 --- a/src/ui/widgets/TextEdit.cpp +++ b/src/ui/widgets/TextEdit.cpp @@ -75,9 +75,10 @@ void TextEdit::SlotNewDefaultFileBrowserTab() { void TextEdit::SlotNewFileBrowserTab() { auto const target_path = - QFileDialog::getOpenFileUrl(this, tr("Open File"), QDir::home().path()); + QFileDialog::getOpenFileName(this, tr("Open File"), QDir::home().path()); + if (target_path.isEmpty()) return; - tab_widget_->SlotOpenPath(target_path.path()); + tab_widget_->SlotOpenPath(target_path); } void TextEdit::SlotNewFileBrowserTabWithDirectory() { |