diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index dc50d0ea1ac8c1aab335e04cc3c3ba6d4fdcfbd5..3ba4b9a4612e8be001b14c20ea3e5d6d0dd0aff2 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -1269,7 +1269,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) {