From b5572bf605cea46af337265def87200e45ed2ec6 Mon Sep 17 00:00:00 2001 From: Nikolay Date: Mon, 26 Jan 2015 17:13:50 +0200 Subject: [PATCH] [Summary] Bug fix #45729 "Unsupported files should be forbidden to load from "open saved session" menu" [Feature reviewed] MKosharnyy [Reviewed] VKamyshniy --- gtk2_ardour/open_file_dialog_windows.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/open_file_dialog_windows.cc b/gtk2_ardour/open_file_dialog_windows.cc index 57b06865f7..495c09d4ab 100644 --- a/gtk2_ardour/open_file_dialog_windows.cc +++ b/gtk2_ardour/open_file_dialog_windows.cc @@ -72,6 +72,7 @@ ARDOUR::open_file_dialog (std::string initial_path, std::string title) ofn.nMaxFile = _MAX_PATH; ofn.lpstrTitle = title.c_str(); ofn.Flags = OFN_PATHMUSTEXIST; + ofn.lpstrFilter = " \0*.ardour\0"; // Check on valid path WIN32_FIND_DATA FindFileData;