diff --git a/src/frontends/qt4/QBranches.C b/src/frontends/qt4/QBranches.C index afec31febc..250b9b386b 100644 --- a/src/frontends/qt4/QBranches.C +++ b/src/frontends/qt4/QBranches.C @@ -165,7 +165,7 @@ void QBranches::on_colorPB_clicked() return; QColor const initial = rgb2qcolor(branch->getColor()); - QColor ncol(QColorDialog::getColor(initial, qApp->focusWidget() ? qApp->focusWidget() : qApp->mainWidget())); + QColor ncol(QColorDialog::getColor(initial, qApp->focusWidget())); if (ncol.isValid()){ // add the color to the branchlist branch->setColor(fromqstr(ncol.name()));