From 39c0c1a08844f61dd103e4e503409ee4652e13c9 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 18 Jul 2022 23:37:49 +0800 Subject: [PATCH] Simplify operations --- src/gui/fspathedit_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/fspathedit_p.cpp b/src/gui/fspathedit_p.cpp index 213ef213e..e8c403ab7 100644 --- a/src/gui/fspathedit_p.cpp +++ b/src/gui/fspathedit_p.cpp @@ -212,7 +212,7 @@ void Private::FileLineEdit::keyPressEvent(QKeyEvent *e) if ((e->key() == Qt::Key_Space) && (e->modifiers() == Qt::CTRL)) { - m_completerModel->setRootPath(QFileInfo(text()).absoluteDir().absolutePath()); + m_completerModel->setRootPath(Path(text()).data()); showCompletionPopup(); }