page_delete_connection_selector.diff (1,180 bytes)
Index: scribus.cpp
===================================================================
--- scribus.cpp (revision 17742)
+++ scribus.cpp (working copy)
@@ -6886,6 +6886,7 @@
page->guides.clearVerticals(GuideManagerCore::Standard);
page->guides.clearVerticals(GuideManagerCore::Auto);
}
+ view->updatesOn(false);
if (tmpSelection.count() != 0)
doc->itemSelection_DeleteItem(&tmpSelection);
for (int a = to - 1; a >= from - 1; a--)
@@ -6910,10 +6911,6 @@
doc->deleteMasterPage(a);
else
doc->deletePage(a);
- disconnect(view->pageSelector, SIGNAL(GotoPage(int)), view, SLOT(GotoPa(int)));
- view->pageSelector->setMaximum(doc->Pages->count());
- view->pageSelector->GotoPg(0);
- connect(view->pageSelector, SIGNAL(GotoPage(int)), view, SLOT(GotoPa(int)));
if (!isMasterPage) // Master pages are not added to sections when created
doc->removePageFromSection(a);
}
@@ -6921,6 +6918,7 @@
view->reformPagesView();
undoManager->setUndoEnabled(true); // ugly hack continues
view->GotoPage(qMin(doc->Pages->count()-1, oldPg));
+ view->updatesOn(true);
updateGUIAfterPagesChanged();
doc->rebuildMasterNames();
pagePalette->rebuildMasters();