Skip to content

Commit

Permalink
[db manager] Fix #12844 - python error opening SQL Window
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 2, 2015
1 parent 1bd3776 commit 6524080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/dlg_sql_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""

from PyQt4.QtCore import Qt, QObject, QSettings, QByteArray, SIGNAL
from PyQt4.QtGui import QDialog, QAction, QKeySequence, QDialogButtonBox, QApplication, QCursor, QMessageBox, QClipboard, QInputDialog
from PyQt4.QtGui import QDialog, QAction, QKeySequence, QDialogButtonBox, QApplication, QCursor, QMessageBox, QClipboard, QInputDialog, QIcon
from PyQt4.Qsci import QsciAPIs

from qgis.core import QgsProject
Expand Down Expand Up @@ -95,6 +95,7 @@ def __init__(self, iface, db, parent=None):
self.connect( self.btnCreateView, SIGNAL("clicked()"), self.createView )

self.queryBuilderFirst = True
self.queryBuilderBtn.setIcon(QIcon(":/db_manager/icons/sql.gif"))
self.connect( self.queryBuilderBtn, SIGNAL("clicked()"), self.displayQueryBuilder )

def updatePresetsCombobox(self):
Expand Down
7 changes: 0 additions & 7 deletions python/plugins/db_manager/ui/DlgSqlWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resources.qrc">
<normaloff>:/db_manager/icons/sql.gif</normaloff>:/db_manager/icons/sql.gif</iconset>
</property>
</widget>
</item>
<item>
Expand Down Expand Up @@ -390,9 +386,6 @@ columns</string>
<tabstop>btnClear</tabstop>
<tabstop>viewResult</tabstop>
</tabstops>
<resources>
<include location="../resources.qrc"/>
</resources>
<connections>
<connection>
<sender>loadAsLayerGroup</sender>
Expand Down

0 comments on commit 6524080

Please sign in to comment.