Simplify operations

This commit is contained in:
Chocobo1
2022-07-18 23:37:49 +08:00
parent f7ae010274
commit 39c0c1a088

View File

@@ -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();
}