author | llornkcor <llornkcor> | 2002-12-15 21:32:35 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-15 21:32:35 (UTC) |
commit | 6de66e1e2af2b3b06e53dd83338b9dc9df6190df (patch) (unidiff) | |
tree | 1c6d955f2acf0f2a1b93b7959748ceed85bab8e0 | |
parent | 0a32396b7294d535b467b4fb4a4a0fb6038a21dc (diff) | |
download | opie-6de66e1e2af2b3b06e53dd83338b9dc9df6190df.zip opie-6de66e1e2af2b3b06e53dd83338b9dc9df6190df.tar.gz opie-6de66e1e2af2b3b06e53dd83338b9dc9df6190df.tar.bz2 |
fix bug in open when cancelling
-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 b199c81..8b3c4c6 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -579,25 +579,25 @@ void TextEdit::fileNew() { | |||
579 | 579 | ||
580 | void TextEdit::fileOpen() { | 580 | void TextEdit::fileOpen() { |
581 | QMap<QString, QStringList> map; | 581 | QMap<QString, QStringList> map; |
582 | map.insert(tr("All"), QStringList() ); | 582 | map.insert(tr("All"), QStringList() ); |
583 | QStringList text; | 583 | QStringList text; |
584 | text << "text/*"; | 584 | text << "text/*"; |
585 | map.insert(tr("Text"), text ); | 585 | map.insert(tr("Text"), text ); |
586 | text << "*"; | 586 | text << "*"; |
587 | map.insert(tr("All"), text ); | 587 | map.insert(tr("All"), text ); |
588 | QString str = OFileDialog::getOpenFileName( 2, | 588 | QString str = OFileDialog::getOpenFileName( 2, |
589 | QPEApplication::documentDir(), | 589 | QPEApplication::documentDir(), |
590 | QString::null, map); | 590 | QString::null, map); |
591 | if(!str.isEmpty() ) | 591 | if( QFile(str).exists()) |
592 | openFile( str ); | 592 | openFile( str ); |
593 | else | 593 | else |
594 | updateCaption(); | 594 | updateCaption(); |
595 | } | 595 | } |
596 | 596 | ||
597 | void TextEdit::doSearchBar() { | 597 | void TextEdit::doSearchBar() { |
598 | if(!useSearchBar) | 598 | if(!useSearchBar) |
599 | searchBar->hide(); | 599 | searchBar->hide(); |
600 | else | 600 | else |
601 | searchBar->show(); | 601 | searchBar->show(); |
602 | } | 602 | } |
603 | 603 | ||