[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kate/app
From: Christoph Cullmann <crossfire () babylon2k ! de>
Date: 2003-10-19 20:02:56
[Download RAW message or body]
CVS commit by cullmann:
fix the error msg dialog on start
M +11 -2 katefileselector.cpp 1.32
--- kdebase/kate/app/katefileselector.cpp #1.31:1.32
@@ -29,4 +29,6 @@
#include "kbookmarkhandler.h"
+#include <kio/netaccess.h>
+
#include "kactionselector.h"
@@ -347,4 +349,11 @@ void KateFileSelector::slotFilterChange(
void KateFileSelector::setDir( KURL u )
{
+ // this check is needed, or we will get annoying warning dialogs on startup
+ // if the old dir was moved, and it would be senseless to try to set the
+ // dir to some none existing dir or file
+ if ( !KIO::NetAccess::exists (u, true, topLevelWidget()) ||
+ (KIO::NetAccess::mimetype (u, topLevelWidget()) != "inode/directory") )
+ u.setPath( QDir::homeDirPath() );
+
dir->setURL(u, true);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic