Qt: Fix opening memcard editor more than once

This commit is contained in:
Stenzek 2023-11-30 13:29:26 +10:00
parent 369f8b1239
commit 78ef9e1105
No known key found for this signature in database
1 changed files with 9 additions and 5 deletions

View File

@ -2707,14 +2707,18 @@ void MainWindow::openMemoryCardEditor(const QString& card_a_path, const QString&
}
if (!m_memory_card_editor_window)
{
m_memory_card_editor_window = new MemoryCardEditorWindow();
if (!m_memory_card_editor_window->isVisible())
{
m_memory_card_editor_window->show();
}
else
{
m_memory_card_editor_window->raise();
m_memory_card_editor_window->activateWindow();
m_memory_card_editor_window->setFocus();
}
if (!card_a_path.isEmpty())
{