diff src/gui/pages/anime_list.cc @ 291:9a88e1725fd2

*: refactor lots of stuff I forgot to put this into different commits, oops! anyway, it doesn't really matter *that* much since this is an unfinished hobby project anyway. once it starts getting stable commit history will be more important, but for now it's not that big of a deal
author Paper <paper@paper.us.eu.org>
date Sun, 12 May 2024 16:31:07 -0400
parents f6a756c19bfb
children 91ac90a34003
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cc	Wed May 08 17:32:28 2024 -0400
+++ b/src/gui/pages/anime_list.cc	Sun May 12 16:31:07 2024 -0400
@@ -320,6 +320,7 @@
 			dialog->show();
 			dialog->raise();
 			dialog->activateWindow();
+			connect(dialog, &InformationDialog::finished, dialog, &InformationDialog::deleteLater);
 		}
 	});
 	menu->addSeparator();
@@ -331,6 +332,7 @@
 			dialog->show();
 			dialog->raise();
 			dialog->activateWindow();
+			connect(dialog, &InformationDialog::finished, dialog, &InformationDialog::deleteLater);
 		}
 	});
 	menu->addAction(tr("Delete from list..."), [this, animes] {
@@ -361,6 +363,7 @@
 	dialog->show();
 	dialog->raise();
 	dialog->activateWindow();
+	connect(dialog, &InformationDialog::finished, dialog, &InformationDialog::deleteLater);
 }
 
 void AnimeListPage::RefreshList() {