Qt: Fix opening memcard editor more than once

pull/3054/head
Stenzek 2 years ago
parent 369f8b1239
commit 78ef9e1105
No known key found for this signature in database

@ -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();
}
m_memory_card_editor_window->raise();
m_memory_card_editor_window->activateWindow();
m_memory_card_editor_window->setFocus();
else
{
m_memory_card_editor_window->raise();
m_memory_card_editor_window->activateWindow();
m_memory_card_editor_window->setFocus();
}
if (!card_a_path.isEmpty())
{

Loading…
Cancel
Save