Changed: Minor changes

--HG--
branch : develop
This commit is contained in:
kervala 2016-06-12 15:11:17 +02:00
parent 270377d854
commit 09ba1038d5

View file

@ -94,7 +94,7 @@ CUninstallWizardDialog::CUninstallWizardDialog(QWidget *parent):QDialog(parent),
// click signals // click signals
connect(uninstallButton, SIGNAL(clicked()), SLOT(accept())); connect(uninstallButton, SIGNAL(clicked()), SLOT(accept()));
connect(quitButton, SIGNAL(clicked()), SLOT(reject())); connect(cancelButton, SIGNAL(clicked()), SLOT(reject()));
connect(model, SIGNAL(itemChanged(QStandardItem *)), SLOT(onItemChanged(QStandardItem *))); connect(model, SIGNAL(itemChanged(QStandardItem *)), SLOT(onItemChanged(QStandardItem *)));
// semi-hack to not update UI on another thread // semi-hack to not update UI on another thread
@ -255,6 +255,7 @@ void CUninstallWizardDialog::updateSizes()
void CUninstallWizardDialog::updateButtons() void CUninstallWizardDialog::updateButtons()
{ {
QStandardItemModel *model = qobject_cast<QStandardItemModel*>(componentsTreeView->model()); QStandardItemModel *model = qobject_cast<QStandardItemModel*>(componentsTreeView->model());
if (model == NULL) return;
int checkedCount = 0; int checkedCount = 0;