From 613ae8a0a9c82dea1332651ba4f4a8e2f06eee0b Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 11 Feb 2003 17:49:47 +0000 Subject: do not allow to open directories... --- (limited to 'core/apps/textedit') diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 9ef423c..4cf1b07 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -637,7 +637,7 @@ void TextEdit::fileOpen() { QString str = OFileDialog::getOpenFileName( 2, QPEApplication::documentDir(), QString::null, map); - if( QFile(str).exists()) + if( QFile(str).exists() && !QFileInfo(str).isDir() ) openFile( str ); else updateCaption(); -- cgit v0.9.0.2