~verzegnassi-stefano/ubuntu-docviewer-app/reboot-document-last-position

« back to all changes in this revision

Viewing changes to src/app/content-communicator.h

- Rename a file as 'filename (copy x).ext' (instead of 'filename.x.ext') if a file with the same name already exists.
- Fixed bad renaming of a file that already has "(copy x)" suffix in its name. Fixes: https://bugs.launchpad.net/bugs/1432403, https://bugs.launchpad.net/bugs/1432408.

Approved by Ubuntu Phone Apps Jenkins Bot, Stefano Verzegnassi, Alan Pope .

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <QUrl>
25
25
#include <QVector>
 
26
#include <libintl.h>
 
27
 
 
28
#define _(value) dgettext(GETTEXT_PACKAGE, value)
26
29
 
27
30
using namespace com::ubuntu;
28
31