summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (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 b199c81..8b3c4c6 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -588,7 +588,7 @@ void TextEdit::fileOpen() {
QString str = OFileDialog::getOpenFileName( 2,
QPEApplication::documentDir(),
QString::null, map);
- if(!str.isEmpty() )
+ if( QFile(str).exists())
openFile( str );
else
updateCaption();