-rw-r--r-- | core/apps/textedit/textedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 4cf1b07..e931f01 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -632,17 +632,17 @@ void TextEdit::fileOpen() { QStringList text; text << "text/*"; map.insert(tr("Text"), text ); text << "*"; map.insert(tr("All"), text ); QString str = OFileDialog::getOpenFileName( 2, QPEApplication::documentDir(), QString::null, map); - if( QFile(str).exists() && !QFileInfo(str).isDir() ) + if( !str.isEmpty() && QFile(str).exists() && !QFileInfo(str).isDir() ) openFile( str ); else updateCaption(); } void TextEdit::doSearchBar() { if(!useSearchBar) searchBar->hide(); |