r14039 by fschmid - Fixed Bug #8422: "show how many items are selected"

scribus-commit scribus-commit at lists.scribus.net
Fri Sep 25 20:45:31 CEST 2009


Revision: 14039
Author: fschmid
Date: 2009-09-25T18:45:04.010422Z
Commit message: Fixed Bug #8422: "show how many items are selected"

Changeset: 
M  /trunk/Scribus/scribus/scribus.cpp

Diffs:
Index: scribus/scribus.cpp
===================================================================
--- scribus/scribus.cpp	(revision 14038)
+++ scribus/scribus.cpp	(revision 14039)
@@ -2905,7 +2905,12 @@
 		currItem = doc->m_Selection->itemAt(0);
 	}
 	assert (docSelectionCount == 0 || currItem != NULL); // help coverity analysis
-
+	if (docSelectionCount == 0)
+		setStatusBarInfoText("");
+	else if (docSelectionCount == 1)
+		setStatusBarInfoText( tr("1 Object selected"));
+	else
+		setStatusBarInfoText( tr("%1 Objects selected").arg(docSelectionCount));
 	actionManager->disconnectNewSelectionActions();
 	scrActions["editSelectAllOnLayer"]->setEnabled(true);
 	scrActions["editDeselectAll"]->setEnabled(SelectedType != -1);




More information about the scribus-commit mailing list