summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -1203,4 +1203,5 @@ void OFileSelector::reparse()
// let's find possible mimetypes
QDir dir( m_currentDir );
+ if( dir.exists() ){
dir.setFilter( QDir::Files | QDir::Readable );
dir.setSorting( QDir::Size );
@@ -1226,4 +1227,5 @@ void OFileSelector::reparse()
currentMimeType = m_mimeCheck->currentText();
}
+ }
}else { // no autoMime
// let the mimetype be set from out side the m_mimeCheck FEATURE
@@ -1238,4 +1240,5 @@ void OFileSelector::reparse()
QDir dir( m_currentDir );
+ if( dir.exists() ){
int sort;
if ( m_case )
@@ -1291,4 +1294,5 @@ void OFileSelector::reparse()
++it;
} // of while loop
+ } // if ( dir.exists() )
m_View->sort();
if( m_shTool ){