working 'refresh buckets' action

This commit is contained in:
mappu 2017-05-21 13:49:41 +12:00
parent 6ac8c3e67b
commit 0f1cc014d7

View File

@ -19,6 +19,7 @@ MainWindow::MainWindow(QWidget *parent) :
databaseContext->addAction(ui->actionDisconnect); databaseContext->addAction(ui->actionDisconnect);
bucketContext = new QMenu(); bucketContext = new QMenu();
bucketContext->addAction(ui->actionRefresh_buckets);
bucketContext->addAction(ui->actionDelete_bucket); bucketContext->addAction(ui->actionDelete_bucket);
} }
@ -156,7 +157,7 @@ void MainWindow::on_bucketTree_customContextMenuRequested(const QPoint &pos)
void MainWindow::on_actionRefresh_buckets_triggered() void MainWindow::on_actionRefresh_buckets_triggered()
{ {
refreshBucketTree(lastContextSelection);
} }
void MainWindow::on_bucketTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous) void MainWindow::on_bucketTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)