Show
Ignore:
Timestamp:
01/13/08 21:51:35 (10 months ago)
Author:
eugene
Message:

Removed checks in SkinBrowserDlg::slot_apply(). The overhead is small, but this way we won't skip any changed inside the same skin/icons/emoticons instance.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/dialogs/skinbrowser.cpp

    r5888 r6037  
    463463} 
    464464 
    465 /*! \brief Applies Skin/iconset 
    466  * 
    467  *  slot_apply() applies all selected options that differ from the currently 
    468  *  activated settings. 
     465/*! \brief Applies settings 
     466 * 
     467 *  Applies selected skin/icons/emoticons. 
    469468 */ 
    470469void SkinBrowserDlg::slot_apply() 
     
    472471  IconManager* iconManager = IconManager::instance(); 
    473472 
    474   if (cmbSkin->currentText() != Config::Skin::active()->skinName()) 
    475     Config::Skin::active()->loadSkin(cmbSkin->currentText().toLocal8Bit()); 
    476  
    477   if (cmbIcon->currentText() != iconManager->iconSet()) 
    478     if (!iconManager->loadIcons(cmbIcon->currentText())) 
    479       WarnUser(this, tr("Unable to load icons \n%1.").arg(cmbIcon->currentText().toLocal8Bit().data())); 
    480  
    481   if (cmbExtIcon->currentText() != iconManager->extendedIconSet()) 
    482     if (!iconManager->loadExtendedIcons(cmbExtIcon->currentText())) 
    483       WarnUser(this, tr("Unable to load extended icons \n%1.").arg(cmbExtIcon->currentText().toLocal8Bit().data())); 
    484  
    485   if (cmbEmoticon->currentText() != Emoticons::self()->theme()) 
    486     Emoticons::self()->setTheme(cmbEmoticon->currentText()); 
     473  Config::Skin::active()->loadSkin(cmbSkin->currentText().toLocal8Bit()); 
     474 
     475  if (!iconManager->loadIcons(cmbIcon->currentText())) 
     476    WarnUser(this, tr("Unable to load icons\n%1.") 
     477        .arg(cmbIcon->currentText().toLocal8Bit().data())); 
     478 
     479  if (!iconManager->loadExtendedIcons(cmbExtIcon->currentText())) 
     480    WarnUser(this, tr("Unable to load extended icons\n%1.") 
     481        .arg(cmbExtIcon->currentText().toLocal8Bit().data())); 
     482 
     483  Emoticons::self()->setTheme(cmbEmoticon->currentText()); 
    487484} 
    488485