Skip to content

Commit

Permalink
fix issue add button
Browse files Browse the repository at this point in the history
  • Loading branch information
All4Gis committed Mar 18, 2017
1 parent f20e707 commit adf87de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions LoadQSSDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def SelectRow(self, checked):

# Add new qss
def AddStyle(self):
self.filename = QtGui.QFileDialog.getOpenFileName(self, "Open qss", self.lastOpenedFile, "*.qss")
self.filename = QFileDialog.getOpenFileName(self, "Open qss", self.lastOpenedFile, "*.qss")
if len(self.filename) != 0:
flags = Qt.WindowSystemMenuHint | Qt.WindowTitleHint
text, ok = QInputDialog.getText(self, 'Style Name', 'Enter name for Style:', flags=flags)
Expand All @@ -137,9 +137,9 @@ def DeleteStyle(self):
if(self.currentItem.text()== getPreview()):

if (self.currentItem.text()==getActivated()):
ret = QtGui.QMessageBox.question(self, self.tr('Delete Style : '+self.currentItem.text()),
ret = QMessageBox.question(self, self.tr('Delete Style : '+self.currentItem.text()),
self.tr('The style you are about to remove is your active style.\nThe default Qgis style will be set.\nAre you sure you want to remove it?'),
QtGui.QMessageBox.Yes | QtGui.QMessageBox.No, QtGui.QMessageBox.No)
QMessageBox.Yes | QMessageBox.No, QMessageBox.No)
if ret == QMessageBox.Yes:
self.ResetStyle()
if ret == QMessageBox.No:
Expand Down
4 changes: 3 additions & 1 deletion metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ qgisMinimumVersion=2.99
qgisMaximumVersion=3.99
description=Configure look and feel for Qgis.
about=Load QSS allows the user to load his/her own *.qss files and change the look and feel of Qgis.Some examples o predefined themes are provided.
version=1.4
version=1.4.1
author=Francisco Raga , Nathan Woodrow
email=franka1986@gmail.com

# Uncomment the following line and add your changelog entries:
changelog=
** General **
1.4.1:
- fix issue in Add Button.
1.4:
- QGIS3 Migration
1.3.9:
Expand Down

0 comments on commit adf87de

Please sign in to comment.