q2rad 0.1.238__tar.gz → 0.1.239__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of q2rad might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: q2rad
3
- Version: 0.1.238
3
+ Version: 0.1.239
4
4
  Summary: RAD - database, GUI, reports
5
5
  Author: Andrei Puchko
6
6
  Author-email: andrei.puchko@gmx.de
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "q2rad"
3
- version = "0.1.238"
3
+ version = "0.1.239"
4
4
  description = "RAD - database, GUI, reports"
5
5
  authors = ["Andrei Puchko <andrei.puchko@gmx.de>"]
6
6
  readme = "README.md"
@@ -2032,16 +2032,18 @@ class Q2ReportRows(Q2Form, ReportForm):
2032
2032
  if form.ok_pressed:
2033
2033
  # proceed = False23
2034
2034
  last_role = self.rows_data.role
2035
- if self.rows_data.role == "table" and form.s.role != "table":
2035
+ new_role = form.s.role
2036
+ if self.rows_data.role == "table" and new_role != "table":
2036
2037
  proceed = q2AskYN(_("It will remove all siblings! Proceed?")) == 2
2037
- proceed = True
2038
2038
  if proceed:
2039
2039
  form.s.data_source = ""
2040
2040
  for x in self.children_rows:
2041
2041
  x.widget().remove()
2042
+ else:
2043
+ new_role = last_role
2042
2044
 
2043
2045
  if last_role in roles_list.split(";"): # skip table children
2044
- self.rows_data.role = form.s.role
2046
+ self.rows_data.role = new_role
2045
2047
  self.rows_data.data_source = form.s.data_source
2046
2048
 
2047
2049
  if self.group_mate:
@@ -2054,7 +2056,7 @@ class Q2ReportRows(Q2Form, ReportForm):
2054
2056
  self.rows_data.new_page_before = form.s.new_page_before
2055
2057
  self.rows_data.new_page_after = form.s.new_page_after
2056
2058
 
2057
- if last_role != "table" and form.s.role == "table": # is is table now
2059
+ if last_role != "table" and new_role == "table": # is is table now
2058
2060
  self.add_table_header()
2059
2061
  self.add_table_footer()
2060
2062
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.239"
@@ -1 +0,0 @@
1
- __version__ = "0.1.238"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes