Diffstat (limited to 'core/apps/textedit/fileSaver.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/fileSaver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/fileSaver.cpp b/core/apps/textedit/fileSaver.cpp index b1ddc0b..209a258 100644 --- a/core/apps/textedit/fileSaver.cpp +++ b/core/apps/textedit/fileSaver.cpp | |||
@@ -177,12 +177,13 @@ void fileSaver::upDir() | |||
177 | void fileSaver::listDoubleClicked(QListViewItem *selectedItem) | 177 | void fileSaver::listDoubleClicked(QListViewItem *selectedItem) |
178 | { | 178 | { |
179 | } | 179 | } |
180 | 180 | ||
181 | void fileSaver::listClicked(QListViewItem *selectedItem) | 181 | void fileSaver::listClicked(QListViewItem *selectedItem) |
182 | { | 182 | { |
183 | if(selectedItem != NULL) { | ||
183 | QString strItem=selectedItem->text(0); | 184 | QString strItem=selectedItem->text(0); |
184 | QString strSize=selectedItem->text(1); | 185 | QString strSize=selectedItem->text(1); |
185 | // qDebug("strItem is "+strItem); | 186 | // qDebug("strItem is "+strItem); |
186 | strSize.stripWhiteSpace(); | 187 | strSize.stripWhiteSpace(); |
187 | // qDebug(strSize); | 188 | // qDebug(strSize); |
188 | 189 | ||
@@ -213,13 +214,13 @@ void fileSaver::listClicked(QListViewItem *selectedItem) | |||
213 | // qDebug("We found our files!!"); | 214 | // qDebug("We found our files!!"); |
214 | 215 | ||
215 | // OnOK(); | 216 | // OnOK(); |
216 | } //end not symlink | 217 | } //end not symlink |
217 | chdir(strItem.latin1()); | 218 | chdir(strItem.latin1()); |
218 | 219 | ||
219 | 220 | } | |
220 | } | 221 | } |
221 | 222 | ||
222 | 223 | ||
223 | void fileSaver::closeEvent( QCloseEvent *e ) | 224 | void fileSaver::closeEvent( QCloseEvent *e ) |
224 | { | 225 | { |
225 | if(e->isAccepted()) { | 226 | if(e->isAccepted()) { |