-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 6f017b4..ec7a08a 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -293,11 +293,12 @@ void AdvancedFm::switchToRemoteTab() { } void AdvancedFm::currentPathComboChanged() { - if(QDir( currentPathCombo->lineEdit()->text()).exists()) { - CurrentDir()->setPath( currentPathCombo->lineEdit()->text() ); + QString pDir = currentPathCombo->lineEdit()->text(); + if(QDir(pDir).exists()) { + CurrentDir()->setPath(pDir ); populateView(); } else { - QMessageBox::message(tr("Note"),tr("<p>That directory does not exist</p>")); + QMessageBox::message(tr("Note"),tr("<p>%1 does not exist</p>").arg(pDir)); } } |