Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix label on raster
  • Loading branch information
elpaso committed Apr 21, 2023
1 parent ef55b38 commit 021a13c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/gui/providers/gdal/qgsgdalsourceselect.cpp
Expand Up @@ -145,6 +145,7 @@ void QgsGdalSourceSelect::radioSrcOgcApi_toggled( bool checked )
radioSrcFile_toggled( checked );
if ( checked )
{
rasterDatasetLabel->setText( tr( "OGC API Endpoint" ) );
const QString vectorPath = mFileWidget->filePath();
emit enableButtons( ! vectorPath.isEmpty() );
if ( mRasterPath.isEmpty() )
Expand All @@ -153,6 +154,10 @@ void QgsGdalSourceSelect::radioSrcOgcApi_toggled( bool checked )
}
fillOpenOptions();
}
else
{
rasterDatasetLabel->setText( tr( "Raster dataset(s)" ) );
}
}

void QgsGdalSourceSelect::radioSrcProtocol_toggled( bool checked )
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsgdalsourceselectbase.ui
Expand Up @@ -88,7 +88,7 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="rasterDatasetLabel">
<property name="text">
<string>Raster dataset(s)</string>
</property>
Expand Down

0 comments on commit 021a13c

Please sign in to comment.