Skip to content

Commit

Permalink
Add .appleseed extension to project file when no extension is specified
Browse files Browse the repository at this point in the history
This fixes regression #233.
  • Loading branch information
usakhelo authored and dictoon committed Oct 18, 2018
1 parent 4206359 commit 4d396c7
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ namespace

enum { WM_UPDATE_CHECK_DATA = WM_USER + 101 };

explicit AboutPanel(
IRendParams* rend_params)
explicit AboutPanel(IRendParams* rend_params)
: m_rend_params(rend_params)
{
m_rollup =
Expand Down Expand Up @@ -298,6 +297,22 @@ namespace
enable_disable_controls();
return TRUE;

case WM_CUSTEDIT_ENTER:
switch (LOWORD(wparam))
{
case IDC_TEXT_PROJECT_FILEPATH:
{
MSTR project_file;
m_text_project_filepath->GetText(project_file);
project_file = replace_extension(project_file, L".appleseed");
m_text_project_filepath->SetText(project_file);
return TRUE;
}

default:
return FALSE;
}

case WM_COMMAND:
switch (LOWORD(wparam))
{
Expand Down

0 comments on commit 4d396c7

Please sign in to comment.