Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 9, 2019
1 parent b847b49 commit 9e957af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/providers/oracle/qgsoracledataitems.cpp
Expand Up @@ -336,7 +336,7 @@ QList<QAction *> QgsOracleLayerItem::actions( QWidget *parent )
return lst;
}

void QgsOracleLayerItem::deleteLayer()
bool QgsOracleLayerItem::deleteLayer()
{
if ( QMessageBox::question( nullptr, QObject::tr( "Delete Table" ),
QObject::tr( "Are you sure you want to delete %1.%2?" ).arg( mLayerProperty.ownerName, mLayerProperty.tableName ),
Expand All @@ -354,6 +354,8 @@ void QgsOracleLayerItem::deleteLayer()
QMessageBox::information( nullptr, tr( "Delete Table" ), tr( "Table deleted successfully." ) );
deleteLater();
}

return res;
}

QString QgsOracleLayerItem::createUri()
Expand Down
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracledataitems.h
Expand Up @@ -114,7 +114,7 @@ class QgsOracleLayerItem : public QgsLayerItem
QList<QAction *> actions( QWidget *parent ) override;

public slots:
void deleteLayer();
bool deleteLayer();

private:
QgsOracleLayerProperty mLayerProperty;
Expand Down

0 comments on commit 9e957af

Please sign in to comment.