aboutsummaryrefslogtreecommitdiffhomepage
path: root/qbuffers.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 10:30:18 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-13 10:30:18 +0100
commite9d53ebec7a17b11761b5fee1c2183cff3110dd5 (patch)
tree9628a4caf18f812cee0a71ed849b546f3275e95d /qbuffers.h
parent3c395e56140c991ea776fedde0eaba230060c767 (diff)
try to canonicalize paths to non-existent files
allows you to edit non-existing files with a predefined name. it is completely canonicalized when it is saved
Diffstat (limited to 'qbuffers.h')
-rw-r--r--qbuffers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/qbuffers.h b/qbuffers.h
index ca1ec32..49b2872 100644
--- a/qbuffers.h
+++ b/qbuffers.h
@@ -177,8 +177,9 @@ public:
inline void
set_filename(const gchar *filename)
{
+ gchar *resolved = get_absolute_path(filename);
g_free(Buffer::filename);
- Buffer::filename = get_absolute_path(filename);
+ Buffer::filename = resolved;
}
inline void