Skip to content

Commit 9d5f289

Browse files
stevenmizunonyalldawson
authored andcommitted
hide Internal connection if build is without WITH_QTMOBILITY cmake setting
use previously set connection; set Autodetect only if Internal happened to be the stored setting. fix #13233
1 parent 02b4f6c commit 9d5f289

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/gps/qgsgpsinformationwidget.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,13 @@ QgsGPSInformationWidget::QgsGPSInformationWidget( QgsMapCanvas *thepCanvas, QWid
202202
{
203203
mRadGpsd->setChecked( true );
204204
}
205-
//disable the internal port method if build is without QtLocation
205+
//hide the internal port method if build is without QtLocation
206206
#ifndef HAVE_QT_MOBILITY_LOCATION
207-
mRadInternal->setDisabled( true );
208-
mRadAutodetect->setChecked( true );
207+
if ( mRadInternal->isChecked() )
208+
{
209+
mRadAutodetect->setChecked( true );
210+
}
211+
mRadInternal->hide();
209212
#endif
210213

211214
//auto digitizing behavior

0 commit comments

Comments
 (0)