summaryrefslogtreecommitdiff
authorkergoth <kergoth>2003-01-26 22:45:27 (UTC)
committer kergoth <kergoth>2003-01-26 22:45:27 (UTC)
commit954ff2a858b34a8249314340f799f0a74426d59c (patch) (side-by-side diff)
treef0b738dceaec14bba0347151db4f372d25cdf8e8
parent4ce67fbdfb5e82bbde3a8963d3e956567438689d (diff)
downloadopie-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.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector.cc4
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()
QDir dir( m_currentDir );
+ if( dir.exists() ){
dir.setFilter( QDir::Files | QDir::Readable );
@@ -1227,2 +1228,3 @@ void OFileSelector::reparse()
}
+ }
}else { // no autoMime
@@ -1239,2 +1241,3 @@ void OFileSelector::reparse()
+ if( dir.exists() ){
int sort;
@@ -1292,2 +1295,3 @@ void OFileSelector::reparse()
} // of while loop
+ } // if ( dir.exists() )
m_View->sort();