Fix crash on opening locations window.

git-svn-id: svn://localhost/ardour2/branches/3.0@7648 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2010-08-18 12:53:17 +00:00
parent 257ec64720
commit 048d407fa5

View File

@@ -303,7 +303,7 @@ ARDOUR_UI::toggle_session_options_window ()
int
ARDOUR_UI::create_location_ui ()
{
if (location_ui == 0) {
if (location_ui->get() == 0) {
location_ui->set (new LocationUIWindow ());
location_ui->get()->set_session (_session);
location_ui->get()->signal_unmap().connect (sigc::bind (sigc::ptr_fun(&ActionManager::uncheck_toggleaction), X_("<Actions>/Common/ToggleLocations")));