QTfrontend/hwform.cpp
changeset 8346 3443e0de2c9d
parent 8328 03684c667664
child 8353 c23bd7ee9a5e
child 8354 c25bee85d6f8
equal deleted inserted replaced
8344:3d18f7f71d65 8346:3443e0de2c9d
   153     playerHash = QString(QCryptographicHash::hash(config->value("net/nick","").toString().toUtf8(), QCryptographicHash::Md5).toHex());
   153     playerHash = QString(QCryptographicHash::hash(config->value("net/nick","").toString().toUtf8(), QCryptographicHash::Md5).toHex());
   154 
   154 
   155     ui.pageRoomsList->setSettings(config);
   155     ui.pageRoomsList->setSettings(config);
   156     ui.pageNetGame->chatWidget->setSettings(config);
   156     ui.pageNetGame->chatWidget->setSettings(config);
   157     ui.pageRoomsList->chatWidget->setSettings(config);
   157     ui.pageRoomsList->chatWidget->setSettings(config);
       
   158     ui.pageOptions->setConfig(config);
   158 #ifdef VIDEOREC
   159 #ifdef VIDEOREC
   159     ui.pageVideos->init(config);
   160     ui.pageVideos->init(config);
   160     ui.pageOptions->setConfig(config);
       
   161 #endif
   161 #endif
   162 
   162 
   163 #ifdef __APPLE__
   163 #ifdef __APPLE__
   164     AutoUpdater* updater = NULL;
   164     AutoUpdater* updater = NULL;
   165     if (config->isAutoUpdateEnabled())
   165     if (config->isAutoUpdateEnabled())
   973 }
   973 }
   974 
   974 
   975 
   975 
   976 void HWForm::DeleteTeam(const QString & teamName)
   976 void HWForm::DeleteTeam(const QString & teamName)
   977 {
   977 {
   978     QMessageBox reallyDeleteMsg(this);
   978     ui.pageEditTeam->deleteTeam(teamName);
   979     reallyDeleteMsg.setIcon(QMessageBox::Question);
   979     UpdateTeamsLists();
   980     reallyDeleteMsg.setWindowTitle(QMessageBox::tr("Teams - Are you sure?"));
       
   981     reallyDeleteMsg.setText(QMessageBox::tr("Do you really want to delete the team '%1'?").arg(teamName));
       
   982     reallyDeleteMsg.setWindowModality(Qt::WindowModal);
       
   983     reallyDeleteMsg.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
       
   984 
       
   985     if (reallyDeleteMsg.exec() == QMessageBox::Ok)
       
   986     {
       
   987         ui.pageEditTeam->deleteTeam(teamName);
       
   988         UpdateTeamsLists();
       
   989     }
       
   990 }
   980 }
   991 
   981 
   992 void HWForm::DeleteScheme()
   982 void HWForm::DeleteScheme()
   993 {
   983 {
   994     ui.pageScheme->selectScheme->setCurrentIndex(ui.pageOptions->SchemesName->currentIndex());
   984     ui.pageScheme->selectScheme->setCurrentIndex(ui.pageOptions->SchemesName->currentIndex());