diff --git a/src/model_jobList.cpp b/src/model_jobList.cpp index b5463fa..ef675e4 100644 --- a/src/model_jobList.cpp +++ b/src/model_jobList.cpp @@ -285,7 +285,7 @@ QModelIndex JobListModel::insertJob(EncodeThread *thread) m_details.insert(id, tr("Not started yet.")); endInsertRows(); - connect(thread, SIGNAL(statusChanged(QUuid, EncodeThread::JobStatus)), this, SLOT(updateStatus(QUuid, EncodeThread::JobStatus)), Qt::QueuedConnection); + connect(thread, SIGNAL(statusChanged(QUuid, JobStatus)), this, SLOT(updateStatus(QUuid, JobStatus)), Qt::QueuedConnection); connect(thread, SIGNAL(progressChanged(QUuid, unsigned int)), this, SLOT(updateProgress(QUuid, unsigned int)), Qt::QueuedConnection); connect(thread, SIGNAL(messageLogged(QUuid, QString)), logFile, SLOT(addLogMessage(QUuid, QString)), Qt::QueuedConnection); connect(thread, SIGNAL(detailsChanged(QUuid, QString)), this, SLOT(updateDetails(QUuid, QString)), Qt::QueuedConnection); diff --git a/src/version.h b/src/version.h index d75aae3..edd8fe0 100644 --- a/src/version.h +++ b/src/version.h @@ -21,8 +21,8 @@ #define VER_X264_MAJOR 2 #define VER_X264_MINOR 1 -#define VER_X264_PATCH 5 -#define VER_X264_BUILD 497 +#define VER_X264_PATCH 6 +#define VER_X264_BUILD 502 #define VER_X264_MINIMUM_REV 2282 #define VER_X264_CURRENT_API 133 diff --git a/src/win_main.cpp b/src/win_main.cpp index 6399eeb..598fbc2 100644 --- a/src/win_main.cpp +++ b/src/win_main.cpp @@ -84,7 +84,7 @@ MainWindow::MainWindow(const x264_cpu_t *const cpuFeatures) //Register meta types qRegisterMetaType("QUuid"); qRegisterMetaType("DWORD"); - qRegisterMetaType("EncodeThread::JobStatus"); + qRegisterMetaType("JobStatus"); //Load preferences m_preferences = new PreferencesModel(); diff --git a/src/win_preferences.cpp b/src/win_preferences.cpp index 0ab463c..19b8d81 100644 --- a/src/win_preferences.cpp +++ b/src/win_preferences.cpp @@ -44,6 +44,12 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, PreferencesModel *preferen setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); setFixedSize(minimumSize()); + if(WId hWindow = this->winId()) + { + HMENU hMenu = GetSystemMenu(hWindow, 0); + EnableMenuItem(hMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED); + } + labelRunNextJob->installEventFilter(this); labelUse10BitEncoding->installEventFilter(this); labelUse64BitAvs2YUV->installEventFilter(this);