aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FileTreeView.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-01-31 05:57:48 +0000
committersaturneric <[email protected]>2024-01-31 05:57:48 +0000
commit01dfc8df4f019e439e7b3e774ef3a02a2a908de2 (patch)
tree68fda3203652e01136e90e4944e190e8a5d41c51 /src/ui/widgets/FileTreeView.cpp
parentfeat: try to add qt5 support (diff)
downloadGpgFrontend-01dfc8df4f019e439e7b3e774ef3a02a2a908de2.tar.gz
GpgFrontend-01dfc8df4f019e439e7b3e774ef3a02a2a908de2.zip
feat: support qt5 build option
Diffstat (limited to 'src/ui/widgets/FileTreeView.cpp')
-rw-r--r--src/ui/widgets/FileTreeView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/FileTreeView.cpp b/src/ui/widgets/FileTreeView.cpp
index b0241b63..7a725e10 100644
--- a/src/ui/widgets/FileTreeView.cpp
+++ b/src/ui/widgets/FileTreeView.cpp
@@ -67,7 +67,7 @@ void FileTreeView::selectionChanged(const QItemSelection& selected,
GF_UI_LOG_DEBUG("file tree view selected target path: {}", selected_path_);
emit SignalSelectedChanged(selected_path_);
} else {
- selected_path_ = {};
+ selected_path_ = QString();
if (!this->selectedIndexes().isEmpty()) {
selected_path_ = dir_model_->filePath(this->selectedIndexes().front());
emit SignalSelectedChanged(selected_path_);