Don't open more than one document for non-existing paths from the CLI
commit6db80a247f6969ffc14272189da449d566a745c0
authorColomban Wendling <ban@herbesfolles.org>
Tue, 8 Sep 2015 14:23:57 +0000 (8 16:23 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Tue, 8 Sep 2015 14:23:57 +0000 (8 16:23 +0200)
tree1f1680764ecbdbad506ea8357cda88726346fdf9
parent8b767fea49f8698ee89e152c8be81d62ef0d8637
Don't open more than one document for non-existing paths from the CLI

When creating a new document for a non-existing file from the command
line, check if we don't already have opened it and simply show the
existing one if we do.  This avoids creating new documents that will be
saved to the same location again and again.

Closes https://bugs.launchpad.net/linuxmint/+bug/1482558
src/libmain.c