mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
removed thread
This commit is contained in:
parent
8680bce5fc
commit
16cc20a603
10 changed files with 25 additions and 95 deletions
|
|
@ -77,7 +77,7 @@ bool DeckListModel::loadFromFile(const QString &fileName)
|
|||
while (!in.atEnd()) {
|
||||
QString line = in.readLine().simplified();
|
||||
bool isSideboard = false;
|
||||
if (line.startsWith("SB:")) {
|
||||
if (line.startsWith("SB:", Qt::CaseInsensitive)) {
|
||||
line = line.mid(3).trimmed();
|
||||
isSideboard = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,13 +38,15 @@ void myMessageOutput(QtMsgType type, const char *msg)
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// qInstallMsgHandler(myMessageOutput);
|
||||
qInstallMsgHandler(myMessageOutput);
|
||||
QApplication app(argc, argv);
|
||||
app.addLibraryPath("plugins");
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
|
||||
|
||||
MainWindow *ui = new MainWindow;
|
||||
qDebug("main(): MainWindow constructor finished");
|
||||
ui->show();
|
||||
qDebug("main(): ui->show() finished");
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue