Update Form Designer - Better Code - ShowMsgNoObjIsSelected() Method.
@@ -1087,14 +1087,7 @@ class FormDesignerController from WindowsControllerParent
}
# Display messagebox if not objects are selected
if len(aObjects) = 0 {
- new qmessagebox(oView.win)
- {
- setwindowtitle("Sorry!")
- settext("No objects are selected")
- setInformativeText("Select objects first to be duplicated")
- setstandardbuttons(QMessageBox_Ok)
- exec()
- }
+ ShowMsgNoObjIsSelected()
return
}
# Duplication of selected objects
@@ -1129,6 +1122,16 @@ class FormDesignerController from WindowsControllerParent
oModel.AddSelectedObject(x)
}
+ func ShowMsgNoObjIsSelected
+ new qmessagebox(oView.win)
+ {
+ setwindowtitle("Sorry!")
+ settext("No objects are selected")
+ setInformativeText("Select objects first to be duplicated")
+ setstandardbuttons(QMessageBox_Ok)
+ exec()
+ }
+
func BringToFront
func SendToBack
