author | kergoth <kergoth> | 2003-01-26 22:45:27 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-01-26 22:45:27 (UTC) |
commit | 954ff2a858b34a8249314340f799f0a74426d59c (patch) (unidiff) | |
tree | f0b738dceaec14bba0347151db4f372d25cdf8e8 | |
parent | 4ce67fbdfb5e82bbde3a8963d3e956567438689d (diff) | |
download | opie-954ff2a858b34a8249314340f799f0a74426d59c.zip opie-954ff2a858b34a8249314340f799f0a74426d59c.tar.gz opie-954ff2a858b34a8249314340f799f0a74426d59c.tar.bz2 |
Added two missing dir.exists() checks, without which a segfault occurs if m_currentDir doesnt exist.
-rw-r--r-- | libopie/ofileselector.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc index 6a6a300..7481360 100644 --- a/libopie/ofileselector.cc +++ b/libopie/ofileselector.cc | |||
@@ -1204,2 +1204,3 @@ void OFileSelector::reparse() | |||
1204 | QDir dir( m_currentDir ); | 1204 | QDir dir( m_currentDir ); |
1205 | if( dir.exists() ){ | ||
1205 | dir.setFilter( QDir::Files | QDir::Readable ); | 1206 | dir.setFilter( QDir::Files | QDir::Readable ); |
@@ -1227,2 +1228,3 @@ void OFileSelector::reparse() | |||
1227 | } | 1228 | } |
1229 | } | ||
1228 | }else { // no autoMime | 1230 | }else { // no autoMime |
@@ -1239,2 +1241,3 @@ void OFileSelector::reparse() | |||
1239 | 1241 | ||
1242 | if( dir.exists() ){ | ||
1240 | int sort; | 1243 | int sort; |
@@ -1292,2 +1295,3 @@ void OFileSelector::reparse() | |||
1292 | } // of while loop | 1295 | } // of while loop |
1296 | } // if ( dir.exists() ) | ||
1293 | m_View->sort(); | 1297 | m_View->sort(); |