Qt: Fix build when sqlite and debugger support is disabled (fixes #1007)

This commit is contained in:
Vicki Pfau 2018-03-07 09:25:11 -08:00
parent 2f7d555f49
commit 253ca1d1b8

View File

@ -412,7 +412,9 @@ void Window::openSettingsWindow() {
connect(settingsWindow, &SettingsView::cameraDriverChanged, this, &Window::mustRestart);
connect(settingsWindow, &SettingsView::languageChanged, this, &Window::mustRestart);
connect(settingsWindow, &SettingsView::pathsChanged, this, &Window::reloadConfig);
#ifdef USE_SQLITE3
connect(settingsWindow, &SettingsView::libraryCleared, m_libraryView, &LibraryController::clear);
#endif
openView(settingsWindow);
}
@ -1830,13 +1832,17 @@ void Window::setController(CoreController* controller, const QString& fname) {
connect(m_controller.get(), &CoreController::failed, this, &Window::gameFailed);
connect(m_controller.get(), &CoreController::unimplementedBiosCall, this, &Window::unimplementedBiosCall);
#ifdef USE_GDB_STUB
if (m_gdbController) {
m_gdbController->setController(m_controller);
}
#endif
#ifdef USE_DEBUGGERS
if (m_console) {
m_console->setController(m_controller);
}
#endif
#ifdef USE_MAGICK
if (m_gifView) {