mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix build when sqlite and debugger support is disabled (fixes #1007)
This commit is contained in:
parent
2f7d555f49
commit
253ca1d1b8
|
@ -412,7 +412,9 @@ void Window::openSettingsWindow() {
|
||||||
connect(settingsWindow, &SettingsView::cameraDriverChanged, this, &Window::mustRestart);
|
connect(settingsWindow, &SettingsView::cameraDriverChanged, this, &Window::mustRestart);
|
||||||
connect(settingsWindow, &SettingsView::languageChanged, this, &Window::mustRestart);
|
connect(settingsWindow, &SettingsView::languageChanged, this, &Window::mustRestart);
|
||||||
connect(settingsWindow, &SettingsView::pathsChanged, this, &Window::reloadConfig);
|
connect(settingsWindow, &SettingsView::pathsChanged, this, &Window::reloadConfig);
|
||||||
|
#ifdef USE_SQLITE3
|
||||||
connect(settingsWindow, &SettingsView::libraryCleared, m_libraryView, &LibraryController::clear);
|
connect(settingsWindow, &SettingsView::libraryCleared, m_libraryView, &LibraryController::clear);
|
||||||
|
#endif
|
||||||
openView(settingsWindow);
|
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::failed, this, &Window::gameFailed);
|
||||||
connect(m_controller.get(), &CoreController::unimplementedBiosCall, this, &Window::unimplementedBiosCall);
|
connect(m_controller.get(), &CoreController::unimplementedBiosCall, this, &Window::unimplementedBiosCall);
|
||||||
|
|
||||||
|
#ifdef USE_GDB_STUB
|
||||||
if (m_gdbController) {
|
if (m_gdbController) {
|
||||||
m_gdbController->setController(m_controller);
|
m_gdbController->setController(m_controller);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_DEBUGGERS
|
||||||
if (m_console) {
|
if (m_console) {
|
||||||
m_console->setController(m_controller);
|
m_console->setController(m_controller);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_MAGICK
|
#ifdef USE_MAGICK
|
||||||
if (m_gifView) {
|
if (m_gifView) {
|
||||||
|
|
Loading…
Reference in New Issue