-rw-r--r-- | noncore/tools/opie-sh/inputdialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/noncore/tools/opie-sh/inputdialog.cpp b/noncore/tools/opie-sh/inputdialog.cpp index 8046795..1dd8bf7 100644 --- a/noncore/tools/opie-sh/inputdialog.cpp +++ b/noncore/tools/opie-sh/inputdialog.cpp @@ -42,3 +42,4 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString QFile file(filename); - file.open(IO_ReadOnly); + if (file.open(IO_ReadOnly)) + { QTextStream stream(&file); @@ -48,2 +49,3 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString } + } else @@ -65,3 +67,4 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString QFile file(filename); - file.open(IO_ReadOnly); + if (file.open(IO_ReadOnly)) + { QTextStream stream(&file); @@ -71,2 +74,3 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString } + } else |