summaryrefslogtreecommitdiff
Unidiff
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
@@ -634,13 +634,13 @@ void TextEdit::fileOpen() {
634 map.insert(tr("Text"), text ); 634 map.insert(tr("Text"), text );
635 text << "*"; 635 text << "*";
636 map.insert(tr("All"), text ); 636 map.insert(tr("All"), text );
637 QString str = OFileDialog::getOpenFileName( 2, 637 QString str = OFileDialog::getOpenFileName( 2,
638 QPEApplication::documentDir(), 638 QPEApplication::documentDir(),
639 QString::null, map); 639 QString::null, map);
640 if( QFile(str).exists()) 640 if( QFile(str).exists() && !QFileInfo(str).isDir() )
641 openFile( str ); 641 openFile( str );
642 else 642 else
643 updateCaption(); 643 updateCaption();
644} 644}
645 645
646void TextEdit::doSearchBar() { 646void TextEdit::doSearchBar() {