From 53f83f508516d2dddf027782dce6dd045bcf1943 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 23 Sep 2011 19:44:47 +0000 Subject: Don't prompt for save location when path is already known from previous save or load. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3476 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/PatchWindow.cpp') diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 5c045612..1d20c732 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -350,6 +350,7 @@ PatchWindow::object_entered(const ObjectModel* model) void PatchWindow::object_left(const ObjectModel* model) { + _status_bar->pop(STATUS_CONTEXT_PATCH); _status_bar->pop(STATUS_CONTEXT_HOVER); } @@ -497,7 +498,8 @@ more files and/or directories, recursively. Existing files will be overwritten. if (confirm) { const Glib::ustring uri = Glib::filename_to_uri(filename); App::instance().loader()->save_patch(_patch, uri); - //_patch->set_property(uris.ingen_document, Atom(Atom::URI, uri.c_str())); + const_cast(_patch.get())->set_property( + uris.ingen_document, Atom(Atom::URI, uri.c_str()), Resource::EXTERNAL); _status_bar->push( (boost::format("Saved %1% to %2%") % _patch->path().chop_scheme() % filename).str(), -- cgit v1.2.1