Skip to content

Commit 021a13c

Browse files
committedApr 21, 2023·
Fix label on raster
1 parent ef55b38 commit 021a13c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎src/gui/providers/gdal/qgsgdalsourceselect.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void QgsGdalSourceSelect::radioSrcOgcApi_toggled( bool checked )
145145
radioSrcFile_toggled( checked );
146146
if ( checked )
147147
{
148+
rasterDatasetLabel->setText( tr( "OGC API Endpoint" ) );
148149
const QString vectorPath = mFileWidget->filePath();
149150
emit enableButtons( ! vectorPath.isEmpty() );
150151
if ( mRasterPath.isEmpty() )
@@ -153,6 +154,10 @@ void QgsGdalSourceSelect::radioSrcOgcApi_toggled( bool checked )
153154
}
154155
fillOpenOptions();
155156
}
157+
else
158+
{
159+
rasterDatasetLabel->setText( tr( "Raster dataset(s)" ) );
160+
}
156161
}
157162

158163
void QgsGdalSourceSelect::radioSrcProtocol_toggled( bool checked )

‎src/ui/qgsgdalsourceselectbase.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</property>
8989
<layout class="QHBoxLayout" name="horizontalLayout">
9090
<item>
91-
<widget class="QLabel" name="label">
91+
<widget class="QLabel" name="rasterDatasetLabel">
9292
<property name="text">
9393
<string>Raster dataset(s)</string>
9494
</property>

0 commit comments

Comments
 (0)
Please sign in to comment.