QValueList<Options::ToolbarPrefs>::Iterator it = opt->toolbars["mainWin"].begin();
671
for ( ; it != opt->toolbars["mainWin"].end(); ++it) {
672
if ( (*it).on )
673
count++;
668
// Check if all toolbars are disabled
669
bool toolbarsVisible = false;
670
QValueList<Options::ToolbarPrefs>::ConstIterator it = opt->toolbars["mainWin"].begin();
671
for ( ; it != opt->toolbars["mainWin"].end() && !toolbarsVisible; ++it) {
672
toolbarsVisible = toolbarsVisible || (*it).on;
674
673
}
675
674
676
675
// Undar MacOS, we have the toolbar in a menu anyway
677
676
#ifndef Q_WS_MAC
678
if ( !count ) {
677
if ( !toolbarsVisible && opt->hideMenubar) {
679
678
QMessageBox::warning(this, tr("Warning"),
680
tr("You can not disable <i>all</i> toolbars. If you do so, you will be unable to enable them back, when you'll change your mind.\n"
681
"<br><br>\n"
682
"If you really-really want to disable all toolbars, you need to edit the config.xml file by hand."),
683
tr("I understand"));
679
tr("You can not disable <i>all</i> toolbars <i>and</i> the menubar. If you do so, you will be unable to enable them back, when you'll change your mind.\n"
680
"<br><br>\n"
681
"If you really-really want to disable all toolbars and the menubar, you need to edit the config.xml file by hand."),