mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Qt: Simplify AboutDialog creation
Just create the AboutDialog on the stack -- the actual object lives on the heap anyway, since Qt uses the pimpl idiom. Removes the need for an explicit new and a special delete on close attribute.
This commit is contained in:
parent
730b7fc833
commit
8f2558dc89
2 changed files with 2 additions and 3 deletions
|
@ -553,8 +553,8 @@ void MainWindow::ShowAudioWindow()
|
|||
|
||||
void MainWindow::ShowAboutDialog()
|
||||
{
|
||||
AboutDialog* about = new AboutDialog(this);
|
||||
about->show();
|
||||
AboutDialog about{this};
|
||||
about.exec();
|
||||
}
|
||||
|
||||
void MainWindow::ShowHotkeyDialog()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue