mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 18:23:46 +01:00
Updating last differences
This commit is contained in:
parent
07cc401639
commit
fab61dcce0
@ -1,4 +1,4 @@
|
||||
[wrap-git]
|
||||
directory=girara
|
||||
url=https://github.com/pwmt/girara.git
|
||||
url=https://git.pwmt.org/pwmt/girara.git
|
||||
revision=develop
|
||||
|
@ -1424,13 +1424,12 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
|
||||
}
|
||||
|
||||
if ((overwrite == false) && g_file_test(file_path, G_FILE_TEST_EXISTS)) {
|
||||
girara_error("File already exists: %s. Use :write! to overwrite it.",
|
||||
file_path);
|
||||
girara_notify(zathura->ui.session, GIRARA_ERROR, _("File already exists: %s. Use :write! to overwrite it."), file_path);
|
||||
g_free(file_path);
|
||||
return false;
|
||||
}
|
||||
|
||||
zathura_error_t error = zathura_document_save_as(zathura->document, file_path);
|
||||
const zathura_error_t error = zathura_document_save_as(zathura->document, file_path);
|
||||
g_free(file_path);
|
||||
|
||||
if (error != ZATHURA_ERROR_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user