diff --git a/src/mainWindow.cpp b/src/mainWindow.cpp --- a/src/mainWindow.cpp +++ b/src/mainWindow.cpp @@ -371,18 +371,22 @@ else if (!uri.isValid()) { KMSG(i18n("The entered URL cannot be parsed; it is invalid.")); + this->close(); } else if (isLocal && !QDir::isAbsolutePath(localPath)) { KMSG(i18n("Filelight only accepts absolute paths, eg. /%1", localPath)); + this->close(); } else if (isLocal && !QDir(localPath).exists()) { KMSG(i18n("Folder not found: %1", localPath)); + this->close(); } else if (isLocal && !QDir(localPath).isReadable()) { KMSG(i18n("Unable to enter: %1\nYou do not have access rights to this location.", localPath)); + this->close(); } else {