aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/MainUI.cpp')
-rw-r--r--lumina-fm/MainUI.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 59cb09bf..c4b74dbd 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -448,10 +448,12 @@ void MainUI::setCurrentDir(QString dir){
ui->tool_goToPlayer->setVisible(false);
ui->tool_goToRestore->setVisible(false);
ui->tool_goToImages->setVisible(false);
- //if(olddir!=rawdir){
+ //Make sure the shortcut buttons are enabled as necessary
+ // If the dir is already loaded into the fsmodel cache it will not emit the directoryLoaded() signal
+ if(rawdir == olddir){
emit DirChanged(rawdir); //This will be automatically run when a new dir is loaded
- emit Si_AdaptStatusBar(fsmod->rootDirectory().entryInfoList(), rawdir, tr("Items"));
- //}
+ }
+ emit Si_AdaptStatusBar(fsmod->rootDirectory().entryInfoList(), rawdir, tr("Items"));
if(isUserWritable){ ui->label_dir_stats->setText(""); }
else{ ui->label_dir_stats->setText(tr("Limited Access Directory"));
}
@@ -549,7 +551,7 @@ void MainUI::AvailableBackups(QString basedir, QStringList snapdirs){
}
void MainUI::DisplayStatusBar(QString msg){
- qDebug() << "in main thread:" << msg;
+ qDebug() << "message to show in the status bar:" << msg;
ui->statusbar->showMessage(msg);
}
@@ -839,6 +841,7 @@ void MainUI::reloadDirectory(){
void MainUI::currentDirectoryLoaded(){
//The directory was just loaded: refresh the action buttons as neccesary
+ // NOTE: This is only "caught" when a *new* directory is loaded into the model
ui->tool_goToPlayer->setVisible(false);
ui->tool_goToRestore->setVisible(false);
ui->tool_goToImages->setVisible(false);
bgstack15