Skip to content
Permalink
Browse files

[db manager] Fix #12844 - python error opening SQL Window

  • Loading branch information
slarosa committed Jun 2, 2015
1 parent 1bd3776 commit 6524080f143ef86e9b4da0b99ce122e528936e39
Showing with 2 additions and 8 deletions.
  1. +2 −1 python/plugins/db_manager/dlg_sql_window.py
  2. +0 −7 python/plugins/db_manager/ui/DlgSqlWindow.ui
@@ -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
@@ -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):
@@ -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>
@@ -390,9 +386,6 @@ columns</string>
<tabstop>btnClear</tabstop>
<tabstop>viewResult</tabstop>
</tabstops>
<resources>
<include location="../resources.qrc"/>
</resources>
<connections>
<connection>
<sender>loadAsLayerGroup</sender>

0 comments on commit 6524080

Please sign in to comment.
You can’t perform that action at this time.