[Konsole-devel] [Bug 105513] "Remote file not accepted" dialog shown when try to open/save files
Kurt V.Hindenburg
kurt.hindenburg at kdemail.net
Fri May 27 17:08:48 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=105513
------- Additional Comments From kurt.hindenburg kdemail net 2005-05-27 19:08 -------
SVN commit 418782 by hindenburg:
Use mostLocalURL for saving history; doesn't work yet as mostLocalURL doesn't work for non-existing files yet.
CCBUG: 105513
M +7 -2 konsole.cpp
--- trunk/KDE/kdebase/konsole/konsole/konsole.cpp #418781:418782
@ -128,6 +128,7 @
#include <kparts/componentfactory.h>
#include <kcharsets.h>
#include <kcolordialog.h>
+#include <kio/netaccess.h>
#include "konsole.h"
#include <netwm.h>
@ -3766,9 +3767,13 @
void Konsole::slotSaveHistory()
{
- KURL url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History"));
- if( url.isEmpty())
+ // FIXME - mostLocalURL can't handle non-existing files yet, so this
+ // code doesn't work.
+ KURL s_url = KFileDialog::getSaveURL(QString::null, QString::null, 0L, i18n("Save History"));
+ if( s_url.isEmpty())
return;
+ KURL url = KIO::NetAccess::mostLocalURL( s_url, 0 );
+
if( !url.isLocalFile() ) {
KMessageBox::sorry(this, i18n("This is not a local file.\n"));
return;
More information about the konsole-devel
mailing list