summaryrefslogtreecommitdiffstats
path: root/src/tabwidget.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <[email protected]>2021-01-17 13:00:04 +0200
committerMavridis Philippe <[email protected]>2021-01-17 13:13:10 +0200
commita3d1f13286393aba4a0673efca28f85f346f15c1 (patch)
tree9cca1123c961fcd9e0d2bc3c8a84b6f771659ff3 /src/tabwidget.cpp
parenta8b9461cd5938d7bde7fcccb4cae201cbbad525c (diff)
downloadklamav-a3d1f13286393aba4a0673efca28f85f346f15c1.tar.gz
klamav-a3d1f13286393aba4a0673efca28f85f346f15c1.zip
Mark tab as closed when closed from context menu.
This resolves issue #11. Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/tabwidget.cpp')
-rw-r--r--src/tabwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp
index b33be4f..bee6ea7 100644
--- a/src/tabwidget.cpp
+++ b/src/tabwidget.cpp
@@ -186,7 +186,7 @@ void TabWidget::slotCloseTab()
{
if(!currentItem) return;
removePage(currentItem);
- delete currentItem;
+ emit tabClosed( currentItem->name() );
currentItem = 0;
}