[latexila/wip/latexila-next: 17/51] BuildToolsPersonal: small bug fix
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/latexila-next: 17/51] BuildToolsPersonal: small bug fix
- Date: Sat, 20 Sep 2014 17:30:39 +0000 (UTC)
commit 2df570c7cfb769ff92bf480b89a245a9cb484ad8
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 4 21:22:14 2014 +0200
BuildToolsPersonal: small bug fix
If save() is called a second time while the first call is still running
(it is an asynchronous function), the second call is just ignored.
src/liblatexila/latexila-build-tools-personal.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/liblatexila/latexila-build-tools-personal.c b/src/liblatexila/latexila-build-tools-personal.c
index e0bedfd..54f3643 100644
--- a/src/liblatexila/latexila-build-tools-personal.c
+++ b/src/liblatexila/latexila-build-tools-personal.c
@@ -165,16 +165,12 @@ latexila_build_tools_personal_save (LatexilaBuildToolsPersonal *build_tools)
g_return_if_fail (LATEXILA_IS_BUILD_TOOLS_PERSONAL (build_tools));
- if (!build_tools->priv->modified)
+ if (!build_tools->priv->modified ||
+ build_tools->priv->xml_file_contents != NULL)
{
return;
}
- if (build_tools->priv->xml_file_contents != NULL)
- {
- g_string_free (build_tools->priv->xml_file_contents, TRUE);
- }
-
contents = g_string_new ("<tools>");
build_tools->priv->xml_file_contents = contents;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]