Skip to content

Commit

Permalink
Fix Bug #609430
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierberten committed Jul 24, 2010
1 parent 40c422a commit 16bbce8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/swatchbooker.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -332,14 +332,16 @@ class MainWindow(QMainWindow):
self.matList.setCurrentItem(self.materials[gridItem.item.material][0])

def gridEdit(self):
if self.cols.value() > 0:
self.sb.book.display['columns'] = self.cols.value()
elif self.cols.value() == 0:
self.sb.book.display['columns'] = False
if self.rows.value() > 0:
self.sb.book.display['rows'] = self.rows.value()
elif self.rows.value() == 0:
self.sb.book.display['rows'] = False
if self.sender() == self.cols:
if self.cols.value() > 0:
self.sb.book.display['columns'] = self.cols.value()
elif self.cols.value() == 0:
self.sb.book.display['columns'] = False
if self.sender() == self.rows:
if self.rows.value() > 0:
self.sb.book.display['rows'] = self.rows.value()
elif self.rows.value() == 0:
self.sb.book.display['rows'] = False
if self.gridHorizAction.isChecked():
settings.setValue("gridHoriz",QVariant(True))
self.colsLabel.setText(_("Rows:"))
Expand Down

0 comments on commit 16bbce8

Please sign in to comment.