From 0ce7b62e9e7a28ed4da7e6fb829bd5ded214bda9 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sun, 26 May 2024 13:13:07 +0300 Subject: Kate: use paths for local files instead of file:/// URLs. Signed-off-by: Mavridis Philippe --- kate/app/kateapp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'kate/app/kateapp.cpp') diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp index 0e4c18121..479d0c77c 100644 --- a/kate/app/kateapp.cpp +++ b/kate/app/kateapp.cpp @@ -239,7 +239,7 @@ bool KateApp::startupKate() } else KMessageBox::sorry( activeMainWindow(), - i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(m_args->url(z).url()) ); + i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(m_args->url(z).pathOrURL()) ); } Kate::Document::setOpenErrorDialogsActivated (true); @@ -350,9 +350,9 @@ bool KateApp::query_session_close() saveSessions = true; } } - + if (saveSessions) - { + { m_sessionManager->saveActiveSession(); } m_sessionManager->saveConfig(saveSessions); @@ -403,7 +403,7 @@ bool KateApp::openURL (const KURL &url, const TQString &encoding, bool isTempFil } else KMessageBox::sorry( mainWindow, - i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(url.url()) ); + i18n("The file '%1' could not be opened: it is not a normal file, it is a folder.").arg(url.pathOrURL()) ); return true; } -- cgit v1.2.1