diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp index d3b0ae2b..ce5dfd81 100644 --- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp +++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp @@ -473,9 +473,11 @@ void DirWidget::on_actionSingleColumn_triggered(bool checked){ if(!checked){ return; } if(RCBW==0){ return; } //nothing to do ui->browser_layout->removeWidget(RCBW); - RCBW->deleteLater(); + RCBW->stop(); + BrowserWidget *tmp = RCBW; RCBW = 0; setCurrentBrowser(""); //reset back to the remaining browser + QTimer::singleShot(10000, tmp, SLOT(deleteLater())); } void DirWidget::on_actionDualColumn_triggered(bool checked){ |