sava mdx server address.
This commit is contained in:
parent
f301c45c5e
commit
581ddbb5e6
@ -29,7 +29,7 @@ from aqt.utils import showInfo, showText
|
||||
from .base import QueryResult, WebService, export, register, with_styles
|
||||
|
||||
|
||||
@register(u'MDX server')
|
||||
@register('MDX_SERVER')
|
||||
class RemoteMdx(WebService):
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@ -411,12 +411,14 @@ class OptionsDialog(QDialog):
|
||||
def fill_field_combo_options(self, field_combo, dict_combo_text, dict_combo_itemdata, field_combo_text):
|
||||
field_combo.clear()
|
||||
field_combo.setEnabled(True)
|
||||
field_combo.setEditable(False)
|
||||
if dict_combo_text in _sl('NOT_DICT_FIELD'):
|
||||
field_combo.setEnabled(False)
|
||||
elif dict_combo_text in _sl('MDX_SERVER'):
|
||||
field_combo.setEditText('http://')
|
||||
text = field_combo_text if field_combo_text else 'http://'
|
||||
field_combo.setEditable(True)
|
||||
field_combo.setEditText(text)
|
||||
field_combo.setFocus(Qt.MouseFocusReason) # MouseFocusReason
|
||||
field_combo.setEnabled(True)
|
||||
else:
|
||||
unique = dict_combo_itemdata
|
||||
service = service_pool.get(unique)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user