Qt: Fix building with FFmpeg or ImageMagick disabled

This commit is contained in:
NieDzejkob 2017-07-25 14:56:41 +02:00 committed by endrift
parent f187fba4fb
commit 9de2189b2e
1 changed files with 8 additions and 0 deletions

View File

@ -1753,15 +1753,23 @@ void Window::setController(CoreController* controller, const QString& fname) {
if (m_gdbController) {
m_gdbController->setController(m_controller);
}
if (m_console) {
m_console->setController(m_controller);
}
#ifdef USE_MAGICK
if (m_gifView) {
m_gifView->setController(m_controller);
}
#endif
#ifdef USE_FFMPEG
if (m_videoView) {
m_videoView->setController(m_controller);
}
#endif
if (m_overrideView) {
m_overrideView->setController(m_controller);
}