-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 16dc7da..818a281 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -279,29 +279,34 @@ void AdvancedFm::cleanUp() | |||
279 | sfile+="._temp"; | 279 | sfile+="._temp"; |
280 | QFile file( sfile); | 280 | QFile file( sfile); |
281 | if(file.exists()) | 281 | if(file.exists()) |
282 | file.remove(); | 282 | file.remove(); |
283 | } | 283 | } |
284 | 284 | ||
285 | void AdvancedFm::tabChanged(QWidget *w) | 285 | void AdvancedFm::tabChanged(QWidget *w) |
286 | { | 286 | { |
287 | if (TabWidget->currentPageIndex() == 0) { | 287 | if (TabWidget->currentPageIndex() == 0) { |
288 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); | 288 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); |
289 | viewMenu->setItemChecked(viewMenu->idAt(0),TRUE); | 289 | viewMenu->setItemChecked(viewMenu->idAt(0),TRUE); |
290 | viewMenu->setItemChecked(viewMenu->idAt(1),FALSE); | 290 | viewMenu->setItemChecked(viewMenu->idAt(1),FALSE); |
291 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); | ||
292 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentDir.canonicalPath())+" kB free" ); | ||
293 | |||
291 | } | 294 | } |
292 | if (TabWidget->currentPageIndex() == 1) { | 295 | if (TabWidget->currentPageIndex() == 1) { |
293 | currentPathCombo->lineEdit()->setText( currentRemoteDir.canonicalPath()); | 296 | currentPathCombo->lineEdit()->setText( currentRemoteDir.canonicalPath()); |
294 | viewMenu->setItemChecked(viewMenu->idAt(1),TRUE); | 297 | viewMenu->setItemChecked(viewMenu->idAt(1),TRUE); |
295 | viewMenu->setItemChecked(viewMenu->idAt(0),FALSE); | 298 | viewMenu->setItemChecked(viewMenu->idAt(0),FALSE); |
299 | QString fs= getFileSystemType((const QString &) currentRemoteDir.canonicalPath()); | ||
300 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentRemoteDir.canonicalPath())+" kB free" ); | ||
296 | } | 301 | } |
297 | } | 302 | } |
298 | 303 | ||
299 | 304 | ||
300 | void AdvancedFm::populateLocalView() | 305 | void AdvancedFm::populateLocalView() |
301 | { | 306 | { |
302 | QPixmap pm; | 307 | QPixmap pm; |
303 | Local_View->clear(); | 308 | Local_View->clear(); |
304 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 309 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
305 | currentDir.setMatchAllDirs(TRUE); | 310 | currentDir.setMatchAllDirs(TRUE); |
306 | currentDir.setNameFilter(filterStr); | 311 | currentDir.setNameFilter(filterStr); |
307 | QString fileL, fileS, fileDate; | 312 | QString fileL, fileS, fileDate; |