-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 | |||
@@ -41,5 +41,6 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString | |||
41 | { | 41 | { |
42 | QFile file(filename); | 42 | QFile file(filename); |
43 | file.open(IO_ReadOnly); | 43 | if (file.open(IO_ReadOnly)) |
44 | { | ||
44 | QTextStream stream(&file); | 45 | QTextStream stream(&file); |
45 | QString string = stream.read(); | 46 | QString string = stream.read(); |
@@ -47,4 +48,5 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString | |||
47 | comboBox->insertStringList(QStringList::split('\n', string)); | 48 | comboBox->insertStringList(QStringList::split('\n', string)); |
48 | } | 49 | } |
50 | } | ||
49 | else | 51 | else |
50 | { | 52 | { |
@@ -64,5 +66,6 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString | |||
64 | { | 66 | { |
65 | QFile file(filename); | 67 | QFile file(filename); |
66 | file.open(IO_ReadOnly); | 68 | if (file.open(IO_ReadOnly)) |
69 | { | ||
67 | QTextStream stream(&file); | 70 | QTextStream stream(&file); |
68 | QString string = stream.read(); | 71 | QString string = stream.read(); |
@@ -70,4 +73,5 @@ InputDialog::InputDialog(int w, int h, int newtype, QString labelString, QString | |||
70 | listBox->insertStringList(QStringList::split('\n', string)); | 73 | listBox->insertStringList(QStringList::split('\n', string)); |
71 | } | 74 | } |
75 | } | ||
72 | else | 76 | else |
73 | { | 77 | { |