Permalink
Browse files

Fix compilation of pc-installgui on 10.x

  • Loading branch information...
1 parent 31290f1 commit b7d9fad88931bcc0138f225a78900ff1946f830b Ken Moore committed Nov 7, 2013
Showing with 11 additions and 8 deletions.
  1. +10 −7 src-qt4/pc-installgui/dialogDesktopSelection.cpp
  2. +1 −1 src-qt4/pc-installgui/dialogKeyboard.cpp
@@ -118,21 +118,24 @@ void desktopSelection::slotDeskPkgsChanged(QTreeWidgetItem *aItem, int aCol)
disconnect(treeWidgetDesktopPackages, SIGNAL(itemChanged(QTreeWidgetItem *, int)), 0, 0);
if (aItem->childCount() == 0) {
- if (aItem->checkState(0) == Qt::Checked && aItem->parent() )
- if ( allChildrenPkgsChecked(aItem->parent()->text(0)))
+ if (aItem->checkState(0) == Qt::Checked && aItem->parent() ){
+ if ( allChildrenPkgsChecked(aItem->parent()->text(0))){
aItem->parent()->setCheckState(0, Qt::Checked);
- else
+ }else{
aItem->parent()->setCheckState(0, Qt::PartiallyChecked);
- if (aItem->checkState(0) == Qt::Unchecked && aItem->parent() )
+ }
+ }
+ if (aItem->checkState(0) == Qt::Unchecked && aItem->parent() ){
if ( ! allChildrenPkgsUnchecked(aItem->parent()->text(0)))
aItem->parent()->setCheckState(0, Qt::PartiallyChecked);
-
+ }
} else {
- if (aItem->checkState(0) == Qt::Checked )
+ if (aItem->checkState(0) == Qt::Checked ){
checkAllChildrenPkgs(aItem->text(0));
- else
+ }else{
uncheckAllChildrenPkgs(aItem->text(0));
+ }
}
@@ -67,7 +67,7 @@ void widgetKeyboard::slotUpdateKbOnSys()
{
QString model, layout, variant;
- if ( ! comboBoxKeyboardModel->currentIndex() == -1 )
+ if ( ! (comboBoxKeyboardModel->currentIndex() == -1) )
return;
if ( ! listKbLayouts->currentItem() )
return;

0 comments on commit b7d9fad

Please sign in to comment.