diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index a885ab52ff8a17993b2ec8b9873efba355a1e3a5..adbf6f91f3424e7d551c63f15462c4b9acc39435 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -1272,7 +1272,7 @@ void MainWindow::_storeCurrentViewState(void) /// Restores the state of the toolbar, status bar and widgets associated with the current view void MainWindow::_loadCurrentViewState(void) { - QWidget* centerView; + QWidget* centerView = NULL; QString defaultWidgets; switch (_currentView) {