summaryrefslogtreecommitdiff
authorzecke <zecke>2003-02-11 17:49:47 (UTC)
committer zecke <zecke>2003-02-11 17:49:47 (UTC)
commit613ae8a0a9c82dea1332651ba4f4a8e2f06eee0b (patch) (side-by-side diff)
tree46fd1cb0033e5d2aed86ba4e929afa337bae08be
parentf84b2b2bced083c3664099d5ae99e4732388812e (diff)
downloadopie-613ae8a0a9c82dea1332651ba4f4a8e2f06eee0b.zip
opie-613ae8a0a9c82dea1332651ba4f4a8e2f06eee0b.tar.gz
opie-613ae8a0a9c82dea1332651ba4f4a8e2f06eee0b.tar.bz2
do not allow to open directories...
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp2
1 files changed, 1 insertions, 1 deletions
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();