summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-16 20:32:46 +0100
committerDavid Robillard <d@drobilla.net>2017-12-16 20:32:46 +0100
commit37e4ae0ddaf61655a7f1698c36bf0bb3a6b2e99c (patch)
tree6558a2302a58255829c0c66b75cea05ea71d46d6 /src/server/events
parent208ddf22cc2122fa729adb99a0c47b184d8c22af (diff)
downloadingen-37e4ae0ddaf61655a7f1698c36bf0bb3a6b2e99c.tar.gz
ingen-37e4ae0ddaf61655a7f1698c36bf0bb3a6b2e99c.tar.bz2
ingen-37e4ae0ddaf61655a7f1698c36bf0bb3a6b2e99c.zip
Don't attempt to undo saving graphs
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Copy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp
index 53f62958..b0801075 100644
--- a/src/server/events/Copy.cpp
+++ b/src/server/events/Copy.cpp
@@ -209,7 +209,9 @@ Copy::post_process()
void
Copy::undo(Interface& target)
{
- target.del(_new_uri);
+ if (uri_is_path(_new_uri)) {
+ target.del(_new_uri);
+ }
}
} // namespace Events