Skip to content

Commit

Permalink
initialize file filter properly for custom state files (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras authored Jul 16, 2020
1 parent a2e777c commit 35ce587
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1682,8 +1682,10 @@ void Application::saveState(unsigned ndx)

void Application::saveState()
{
std::string extensions = "*.STATE";
std::string extensions = "State Files (*.state)";
extensions.append("\0", 1);
extensions.append("*.state");
extensions.append("\0", 2);
std::string path = util::saveFileDialog(g_mainWindow, extensions);

if (!path.empty())
Expand Down Expand Up @@ -1720,8 +1722,10 @@ void Application::loadState(unsigned ndx)

void Application::loadState()
{
std::string extensions = "*.STATE";
std::string extensions = "State Files (*.state)";
extensions.append("\0", 1);
extensions.append("*.state");
extensions.append("\0", 2);
std::string path = util::openFileDialog(g_mainWindow, extensions);

if (path.empty())
Expand Down

0 comments on commit 35ce587

Please sign in to comment.