summaryrefslogtreecommitdiffstats
path: root/src/dialog.cpp
diff options
context:
space:
mode:
authorSimon Rettberg2014-05-05 14:48:12 +0200
committerSimon Rettberg2014-05-05 14:48:12 +0200
commit73b9a0771953685fce2e819543e6a3b632e4593d (patch)
treeb72a9707a664c51e97be130716c2815c667ce0ae /src/dialog.cpp
parentForgot shortopt for --fullscreen (diff)
downloadvmchooser2-73b9a0771953685fce2e819543e6a3b632e4593d.tar.gz
vmchooser2-73b9a0771953685fce2e819543e6a3b632e4593d.tar.xz
vmchooser2-73b9a0771953685fce2e819543e6a3b632e4593d.zip
Fix refresh again....
Diffstat (limited to 'src/dialog.cpp')
-rw-r--r--src/dialog.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp
index be8d976..5118cbb 100644
--- a/src/dialog.cpp
+++ b/src/dialog.cpp
@@ -118,6 +118,7 @@ void Dialog::addItems(const QList<Session*>& entries, int tab) {
if (tab == activeTab_) {
setListModel(this->model_[tab]);
}
+ model_[tab]->updateView();
}
void Dialog::addStatusString(const int status) {
@@ -127,6 +128,8 @@ void Dialog::addStatusString(const int status) {
this->model_[2]->addLabelItem(strings_[status]);
tabs_[1]->setEnabled(this->model_[1]->rowCount() > 1);
tabs_[2]->setEnabled(this->model_[2]->rowCount() > 1);
+ model_[1]->updateView();
+ model_[2]->updateView();
}
void Dialog::removeStatusString(const int status) {
@@ -136,6 +139,8 @@ void Dialog::removeStatusString(const int status) {
this->model_[2]->removeItem(strings_[status]);
tabs_[1]->setEnabled(this->model_[1]->rowCount() > 1);
tabs_[2]->setEnabled(this->model_[1]->rowCount() > 1);
+ model_[1]->updateView();
+ model_[2]->updateView();
}
void Dialog::on_pushButtonAbort_clicked() {