Ctrl+W shortcut on last open tab causes Assistant to crash.
authorkh1 <karsten.heimrich@digia.com>
Mon, 11 Feb 2013 12:26:07 +0000 (13:26 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 11 Feb 2013 12:35:49 +0000 (13:35 +0100)
commit7598c22441b357d8bdb768f4ec31deb0cb6655e9
treef9a390ef58135c60363e3b3c44cea349da7fb46a
parent8961b476885ce537048bf9f07d928f01ba12bfa3
Ctrl+W shortcut on last open tab causes Assistant to crash.

Task-number: QTBUG-29499

This happend as nobody did inform the menu about the page changes,
the shortcut remained active even for the last viewer. Also make
some constructors and functions private, so we can no longer mess
from the outside with the viewers, except thru OpenPagesManager.

Change-Id: I2675996d4b30ab8b1db657e5157b497a73b96196
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
src/assistant/assistant/centralwidget.h
src/assistant/assistant/mainwindow.cpp
src/assistant/assistant/mainwindow.h
src/assistant/assistant/openpagesmanager.cpp
src/assistant/assistant/openpagesmanager.h
src/assistant/assistant/openpagesmodel.h