summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-02-16 20:54:08 (UTC)
committer llornkcor <llornkcor>2003-02-16 20:54:08 (UTC)
commit64178d4839f12540b8a3d19cf79c9c2b1d33707e (patch) (unidiff)
treec8e1b65c379e286b9f8f6750b0c69eaf5c00235c
parentb24a37c7e412cdf49f5d93c8ab51786b6cda24fb (diff)
downloadopie-64178d4839f12540b8a3d19cf79c9c2b1d33707e.zip
opie-64178d4839f12540b8a3d19cf79c9c2b1d33707e.tar.gz
opie-64178d4839f12540b8a3d19cf79c9c2b1d33707e.tar.bz2
fix for bug 616- hitting ok when no file is selected hangs
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 4cf1b07..e931f01 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -637,7 +637,7 @@ void TextEdit::fileOpen() {
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() && !QFileInfo(str).isDir() ) 640 if( !str.isEmpty() && QFile(str).exists() && !QFileInfo(str).isDir() )
641 openFile( str ); 641 openFile( str );
642 else 642 else
643 updateCaption(); 643 updateCaption();