add warning widget
This commit is contained in:
@@ -483,8 +483,12 @@ class SearchStatisticPage(QtWidgets.QDialog, Ui_Dialog):
|
|||||||
parent_depth = args[2]
|
parent_depth = args[2]
|
||||||
apparat = args[1]
|
apparat = args[1]
|
||||||
if header == "deleted" and parent_depth == 2:
|
if header == "deleted" and parent_depth == 2:
|
||||||
# TODO: warn message here
|
log.warning("Semesterapparat wurde bereits gelöscht")
|
||||||
logger.warning("Semesterapparat wurde bereits gelöscht")
|
QtWidgets.QMessageBox.information(
|
||||||
|
self,
|
||||||
|
"Information",
|
||||||
|
f"Der Semesterapparat wurde bereits gelöscht und kann nicht angezeigt werden.",
|
||||||
|
)
|
||||||
if parent_depth == 1:
|
if parent_depth == 1:
|
||||||
# person selected case - open all apparats from this person in the tableWidget
|
# person selected case - open all apparats from this person in the tableWidget
|
||||||
self.tableWidget.setRowCount(0)
|
self.tableWidget.setRowCount(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user