summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-23 19:44:47 +0000
committerDavid Robillard <d@drobilla.net>2011-09-23 19:44:47 +0000
commit53f83f508516d2dddf027782dce6dd045bcf1943 (patch)
treeecb1d924ebc0104205755484355e7d8dad25f8b5 /src/gui
parent9a99f038176a7fadc59bbeaa3d3d57f16e4abb74 (diff)
downloadingen-53f83f508516d2dddf027782dce6dd045bcf1943.tar.gz
ingen-53f83f508516d2dddf027782dce6dd045bcf1943.tar.bz2
ingen-53f83f508516d2dddf027782dce6dd045bcf1943.zip
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
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/PatchWindow.cpp4
1 files changed, 3 insertions, 1 deletions
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<PatchModel*>(_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(),