forked from qt-creator/qt-creator
Make sure we call stop before removing a page.
Fixes a spinning cursor in case the page was not fully loaded and we where closing it at the same time. Change-Id: Iae6efac70c0c8be2f84e6b1551275bbdf9c5aab3 Reviewed-by: Niels Weber <niels.2.weber@nokia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
This commit is contained in:
@@ -87,6 +87,7 @@ void OpenPagesModel::removePage(int index)
|
||||
Q_ASSERT(index >= 0 && index < rowCount());
|
||||
beginRemoveRows(QModelIndex(), index, index);
|
||||
HelpViewer *page = m_pages.at(index);
|
||||
page->stop();
|
||||
m_pages.removeAt(index);
|
||||
endRemoveRows();
|
||||
page->deleteLater();
|
||||
|
||||
Reference in New Issue
Block a user