Skip to content

Commit

Permalink
s/storageType/storageTypeIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Aug 16, 2021
1 parent 53e16e8 commit 7d89628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/gui/editorwidgets/qgsexternalresourceconfigdlg.cpp
Expand Up @@ -291,16 +291,16 @@ QgsExpressionContext QgsExternalResourceConfigDlg::createExpressionContext() con
return context;
}

void QgsExternalResourceConfigDlg::changeStorageType( int storageType )
void QgsExternalResourceConfigDlg::changeStorageType( int storageTypeIndex )
{
// first one in combo box is not an external storage
mExternalStorageGroupBox->setVisible( storageType );
mExternalStorageGroupBox->setVisible( storageTypeIndex > 0 );

// for now, we store only files in external storage
mStorageModeGroupBox->setVisible( !storageType );
mStorageModeGroupBox->setVisible( !storageTypeIndex );

// Absolute path are mandatory when using external storage
mRelativeGroupBox->setVisible( !storageType );
mRelativeGroupBox->setVisible( !storageTypeIndex );

emit changed();
}
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsexternalresourceconfigdlg.h
Expand Up @@ -53,7 +53,7 @@ class GUI_EXPORT QgsExternalResourceConfigDlg : public QgsEditorConfigWidget, pr
void enableRelativeDefault();

//! change storage type according to index from storage type combo box
void changeStorageType( int index );
void changeStorageType( int storageTypeIndex );

};

Expand Down

0 comments on commit 7d89628

Please sign in to comment.