From 16416aeafedee51c016a9a76cb95c49c8c45e482 Mon Sep 17 00:00:00 2001 From: doitux Date: Mon, 13 Apr 2009 19:09:02 +0000 Subject: [PATCH] error handling for game table style --- src/gui/qt/styles/gametablestylereader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/qt/styles/gametablestylereader.cpp b/src/gui/qt/styles/gametablestylereader.cpp index 685611a6..007edcbb 100644 --- a/src/gui/qt/styles/gametablestylereader.cpp +++ b/src/gui/qt/styles/gametablestylereader.cpp @@ -234,8 +234,6 @@ void GameTableStyleReader::readStyleFile(QString file) { else if (itemsList->ValueStr() == "BetSpeedSliderHandleBorderColor") { BetSpeedSliderHandleBorderColor = QString::fromUtf8(tempString1.c_str()); } // SIZES else if (itemsList->ValueStr() == "ChatLogTextSize") { ChatLogTextSize = QString::fromUtf8(tempString1.c_str()); } - -// std::cout << "ÖLP" << itemsList->ValueStr() <<"§4s"<< itemsList->ValueStr()<<"§89"<< endl; } } @@ -469,7 +467,10 @@ void GameTableStyleReader::readStyleFile(QString file) { } } } - else { qDebug() << "could not load game table style file: " << tinyFileName.c_str(); } + else { QMessageBox::warning(myW, tr("Game Table Style Error"), + tr("Can not load game table style file: %1 \n\nPlease check the style file or choose another style!").arg(tinyFileName.c_str()), + QMessageBox::Ok); + } } void GameTableStyleReader::showLeftItemsErrorMessage(QString style, QStringList failedItems, QString email)