mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
knetattach: adjust to KUrl changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
19f926d669
commit
d57eb2ce29
2 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ bool KNetAttach::validateCurrentPage()
|
|||
desktopFile.writeEntry("Name", name);
|
||||
desktopFile.writeEntry("Type", "Link");
|
||||
desktopFile.writeEntry("URL", remoteUrl);
|
||||
desktopFile.writeEntry("Charset", url.fileEncoding());
|
||||
desktopFile.writeEntry("Charset", url.queryItemValue("charset"));
|
||||
desktopFile.sync();
|
||||
org::kde::KDirNotify::emitFilesAdded( "remote:/" );
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ static void filter( const char* u, const char * expectedResult = 0, int expected
|
|||
QString cmd;
|
||||
KUrl uri = filterData->uri();
|
||||
|
||||
if ( uri.isLocalFile() && !uri.hasRef() && uri.query().isEmpty() &&
|
||||
if ( uri.isLocalFile() && !uri.hasFragment() && !uri.hasQuery() &&
|
||||
(filterData->uriType() != KUriFilterData::NetProtocol))
|
||||
cmd = uri.toLocalFile();
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue