|
|
@ -773,7 +773,7 @@ void UBBoardController::deleteScene(int nIndex) |
|
|
|
mDeletingSceneIndex = nIndex; |
|
|
|
mDeletingSceneIndex = nIndex; |
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); |
|
|
|
persistCurrentScene(); |
|
|
|
persistCurrentScene(); |
|
|
|
showMessage(tr("Delete page %1 from document").arg(nIndex), true); |
|
|
|
showMessage(tr("Deleting page %1").arg(nIndex+1), true); |
|
|
|
|
|
|
|
|
|
|
|
QList<int> scIndexes; |
|
|
|
QList<int> scIndexes; |
|
|
|
scIndexes << nIndex; |
|
|
|
scIndexes << nIndex; |
|
|
@ -783,7 +783,7 @@ void UBBoardController::deleteScene(int nIndex) |
|
|
|
if (nIndex >= pageCount()) |
|
|
|
if (nIndex >= pageCount()) |
|
|
|
nIndex = pageCount()-1; |
|
|
|
nIndex = pageCount()-1; |
|
|
|
setActiveDocumentScene(nIndex); |
|
|
|
setActiveDocumentScene(nIndex); |
|
|
|
showMessage(tr("Page %1 deleted").arg(nIndex)); |
|
|
|
showMessage(tr("Page %1 deleted").arg(nIndex+1)); |
|
|
|
QApplication::restoreOverrideCursor(); |
|
|
|
QApplication::restoreOverrideCursor(); |
|
|
|
mDeletingSceneIndex = -1; |
|
|
|
mDeletingSceneIndex = -1; |
|
|
|
} |
|
|
|
} |
|
|
@ -1564,8 +1564,6 @@ void UBBoardController::setActiveDocumentScene(UBDocumentProxy* pDocumentProxy, |
|
|
|
|
|
|
|
|
|
|
|
setDocument(pDocumentProxy, forceReload); |
|
|
|
setDocument(pDocumentProxy, forceReload); |
|
|
|
|
|
|
|
|
|
|
|
persistCurrentScene(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateSystemScaleFactor(); |
|
|
|
updateSystemScaleFactor(); |
|
|
|
|
|
|
|
|
|
|
|
mControlView->setScene(mActiveScene); |
|
|
|
mControlView->setScene(mActiveScene); |
|
|
|