diff --git a/application/mainwindow.cpp b/application/mainwindow.cpp
index faee5ec..8b4c6fc 100644
--- a/application/mainwindow.cpp
+++ b/application/mainwindow.cpp
@@ -63,3 +63,8 @@ void MainWindow::on_actionOpen_database_triggered()
dialog.setWindowTitle(tr("Open Database"));
Context::instance().openDb(dialog.getOpenFileName());
}
+
+void MainWindow::on_tabWidget_tabCloseRequested(int index)
+{
+ ui->tabWidget->removeTab(index);
+}
diff --git a/application/mainwindow.h b/application/mainwindow.h
index a33e03b..af6786d 100644
--- a/application/mainwindow.h
+++ b/application/mainwindow.h
@@ -23,6 +23,8 @@ private slots:
void on_actionOpen_database_triggered();
+ void on_tabWidget_tabCloseRequested(int index);
+
private:
Ui::MainWindow *ui;
};
diff --git a/application/mainwindow.ui b/application/mainwindow.ui
index 7552bc0..644d849 100644
--- a/application/mainwindow.ui
+++ b/application/mainwindow.ui
@@ -31,6 +31,9 @@
-1
+
+ true
+
@@ -41,7 +44,7 @@
0
0
825
- 25
+ 21