mirror of https://github.com/procxx/kepka.git
Remove layer deletion by timer in MainWindow.
It could be: schedule deletion -> show new box -> delete it by timer. This fixes the error box display when adding users to groups.
This commit is contained in:
parent
bd1547cd5e
commit
3db913f15b
|
@ -533,13 +533,6 @@ void MainWindow::checkHistoryActivation() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::layerHidden() {
|
|
||||||
destroyLayerDelayed();
|
|
||||||
hideMediaview();
|
|
||||||
setInnerFocus();
|
|
||||||
checkHistoryActivation();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MainWindow::contentOverlapped(const QRect &globalRect) {
|
bool MainWindow::contentOverlapped(const QRect &globalRect) {
|
||||||
if (_main && _main->contentOverlapped(globalRect)) return true;
|
if (_main && _main->contentOverlapped(globalRect)) return true;
|
||||||
if (_layerBg && _layerBg->contentOverlapped(globalRect)) return true;
|
if (_layerBg && _layerBg->contentOverlapped(globalRect)) return true;
|
||||||
|
@ -739,7 +732,11 @@ void MainWindow::noLayerStack(LayerStackWidget *was) {
|
||||||
|
|
||||||
void MainWindow::layerFinishedHide(LayerStackWidget *was) {
|
void MainWindow::layerFinishedHide(LayerStackWidget *was) {
|
||||||
if (was == _layerBg) {
|
if (was == _layerBg) {
|
||||||
QTimer::singleShot(0, this, SLOT(layerHidden()));
|
destroyLayerDelayed();
|
||||||
|
InvokeQueued(this, [this] {
|
||||||
|
setInnerFocus();
|
||||||
|
checkHistoryActivation();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,6 @@ protected:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void showSettings();
|
void showSettings();
|
||||||
void layerHidden();
|
|
||||||
void setInnerFocus();
|
void setInnerFocus();
|
||||||
void updateConnectingStatus();
|
void updateConnectingStatus();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue