diff options
Diffstat (limited to 'lumina-fileinfo/MainUI.cpp')
-rw-r--r-- | lumina-fileinfo/MainUI.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lumina-fileinfo/MainUI.cpp b/lumina-fileinfo/MainUI.cpp index 481574e0..a2c30ebd 100644 --- a/lumina-fileinfo/MainUI.cpp +++ b/lumina-fileinfo/MainUI.cpp @@ -116,6 +116,8 @@ void MainUI::LoadFile(QString path, QString type){ //Setup the tab if(type.isEmpty()){ ui->tabWidget->setCurrentIndex(0); } else if(ui->tabWidget->count()>1){ ui->tabWidget->setCurrentIndex(1); } + //Hide the tab bar (the autoHideTabBar setting was not added until Qt 5.4) + if(ui->tabWidget->count() < 2){ ui->tabWidget->tabBar()->hide(); } } void MainUI::UpdateIcons(){ |