Kate: use paths for local files instead of file:/// URLs.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/490/head
Mavridis Philippe 6 months ago
parent b82c8a3f42
commit 0ce7b62e9e
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

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

@ -438,7 +438,7 @@ TQString KateFileList::tooltip( TQListViewItem *item, int )
str += i18n("<b>This file was changed (deleted) on disk by another program.</b><br />");
}
str += i->document()->url().prettyURL();
str += i->document()->url().pathOrURL();
return str;
}

@ -851,7 +851,7 @@ void KateMainWindow::updateCaption(Kate::Document *doc)
}
else
{
c = m_viewManager->activeView()->getDoc()->url().prettyURL();
c = m_viewManager->activeView()->getDoc()->url().pathOrURL();
}
if (showSessionName)

@ -44,7 +44,7 @@ class KateDocItem : public TQCheckListItem
{
public:
KateDocItem( Kate::Document *doc, const TQString &status, TDEListView *lv )
: TQCheckListItem( lv, doc->url().prettyURL(), CheckBox ),
: TQCheckListItem( lv, doc->url().pathOrURL(), CheckBox ),
document( doc )
{
setText( 1, status );
@ -161,7 +161,7 @@ void KateMwModOnHdDialog::handleSelected( int action )
{
KMessageBox::sorry( this,
i18n("Could not save the document \n'%1'").
arg( item->document->url().prettyURL() ) );
arg( item->document->url().pathOrURL() ) );
}
break;

@ -429,7 +429,7 @@ void KateViewSpaceContainer::statusMsg ()
}
else
{
c = v->getDoc()->url().prettyURL();
c = v->getDoc()->url().pathOrURL();
}
m_viewManager->mainWindow()->tabWidget()->changeTab (this, KStringHandler::lsqueeze(c,32));

Loading…
Cancel
Save