Permalink
Browse files

Merge pull request #7199 from spycrab/qt_default_iso

Qt/PathPane: Update "Default ISO" when changed
  • Loading branch information...
spycrab committed Jul 3, 2018
2 parents 4a68490 + 37e936f commit f8bb4355a540af2764dc78da86a0514add794ca8
Showing with 5 additions and 8 deletions.
  1. +2 −1 Source/Core/DolphinQt2/GameList/GameList.cpp
  2. +3 −7 Source/Core/DolphinQt2/Settings/PathPane.cpp
@@ -549,7 +549,8 @@ void GameList::UninstallWAD()
void GameList::SetDefaultISO()
{
SConfig::GetInstance().m_strDefaultISO = GetSelectedGame()->GetFilePath();
Settings::Instance().SetDefaultGame(
QDir::toNativeSeparators(QString::fromStdString(GetSelectedGame()->GetFilePath())));
}
void GameList::OpenContainingFolder()
@@ -41,17 +41,13 @@ void PathPane::Browse()
void PathPane::BrowseDefaultGame()
{
auto& default_iso = SConfig::GetInstance().m_strDefaultISO;
QString file = QDir::toNativeSeparators(QFileDialog::getOpenFileName(
this, tr("Select a Game"), QString::fromStdString(default_iso),
this, tr("Select a Game"), Settings::Instance().GetDefaultGame(),
tr("All GC/Wii files (*.elf *.dol *.gcm *.iso *.tgc *.wbfs *.ciso *.gcz *.wad);;"
"All Files (*)")));
if (!file.isEmpty())
{
m_game_edit->setText(file);
default_iso = file.toStdString();
}
Settings::Instance().SetDefaultGame(file);
}
void PathPane::BrowseWiiNAND()

0 comments on commit f8bb435

Please sign in to comment.