File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
5
5
from qgis .PyQt .QtCore import Qt , QModelIndex , QSettings
6
- from qgis .PyQt .QtWidgets import QCompleter , QLineEdit
6
+ from qgis .PyQt .QtWidgets import QCompleter , QLineEdit , QMessageBox
7
7
from qgis .core import *
8
8
9
9
from .configure_dialog import ConfigureDialog
@@ -16,9 +16,8 @@ def __init__(self, language='en'):
16
16
self ._language = language
17
17
18
18
def geocoding (self , searchword , center_lonlat ):
19
- smanager = SettingsManager ()
20
- auth_cfg_id = smanager .get_setting ('auth_cfg_id' )
21
- if not utils .validate_credentials (auth_cfg_id ):
19
+ if not utils .validate_credentials ():
20
+ QMessageBox .warning (None , 'Access Error' , '\n Access error occurred. \n Please Confirm your Credentials.' )
22
21
self ._openConfigureDialog ()
23
22
return
24
23
Original file line number Diff line number Diff line change @@ -120,4 +120,4 @@ def qgis_request_data(url: str) -> bytes:
120
120
121
121
122
122
if __name__ == "__main__" :
123
- validate_credentials ('' )
123
+ validate_credentials ()
You can’t perform that action at this time.
0 commit comments