diff --git a/src/forms/progressform.cpp b/src/forms/progressform.cpp index 88468bf..aa0160d 100644 --- a/src/forms/progressform.cpp +++ b/src/forms/progressform.cpp @@ -31,7 +31,7 @@ ProgressForm::ProgressForm(QWidget *parent) : move(QApplication::desktop()->screen()->rect().center() - rect().center()); setFixedSize(size()); setWindowFlags(Qt::CustomizeWindowHint | Qt::WindowTitleHint); - connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(cancelConfirm())); + connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(cancelConfirm())); } ProgressForm::~ProgressForm() diff --git a/src/main.cpp b/src/main.cpp index 2e5aaad..a4c5586 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -72,6 +73,10 @@ int main(int argc, char *argv[]) #endif } +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); +#endif + qDebug("Starting QCMA %s", QCMA_VER); QTranslator translator;