diff --git a/src/Dialog_MainWindow.cpp b/src/Dialog_MainWindow.cpp index 2dbff3e9..260b2305 100644 --- a/src/Dialog_MainWindow.cpp +++ b/src/Dialog_MainWindow.cpp @@ -585,11 +585,16 @@ void MainWindow::changeEvent(QEvent *e) comboBoxSamplingRate->setCurrentIndex(comboBoxIndex[1]); comboBoxNeroAACProfile->setCurrentIndex(comboBoxIndex[2]); + //Update the window title +#if !defined(_DEBUG) && !defined(QT_DEBUG) && defined(NDEBUG) && defined(QT_NO_DEBUG) if(lamexp_version_demo()) { setWindowTitle(QString("%1 [%2]").arg(windowTitle(), tr("DEMO VERSION"))); } - +#else + setWindowTitle(QString("%1 [!!! DEBUG BUILD !!!]").arg(windowTitle())); +#endif + //Manually re-translate widgets that UIC doesn't handle m_dropNoteLabel->setText(QString("» %1 «").arg(tr("You can drop in audio files here!"))); m_showDetailsContextAction->setText(tr("Show Details")); diff --git a/src/Global.cpp b/src/Global.cpp index ce610d01..03240a5a 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -57,6 +57,13 @@ //Debug only includes #ifdef _DEBUG +#ifndef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif +#if(_WIN32_WINNT < 0x0501) +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x0501 +#endif #include #endif //_DEBUG