[bijiben] BijiNoteID _equal_ fix comparison
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] BijiNoteID _equal_ fix comparison
- Date: Fri, 24 Jan 2014 21:12:24 +0000 (UTC)
commit f0b2938220e352e8cb18de27dcec849b5a7b4c32
Author: Pierre-Yves Luyten <py luyten fr>
Date: Fri Jan 24 22:11:03 2014 +0100
BijiNoteID _equal_ fix comparison
otherwise we cannot focus an already opened note
src/bjb-main-view.c | 2 +-
src/libbiji/biji-note-id.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bjb-main-view.c b/src/bjb-main-view.c
index 5bcf93d..b6d5d6d 100644
--- a/src/bjb-main-view.c
+++ b/src/bjb-main-view.c
@@ -189,7 +189,7 @@ show_window_if_note (gpointer data, gpointer user_data)
{
BjbWindowBase *window = data;
BijiNoteObj *to_open = user_data;
- BijiNoteObj *cur = NULL;
+ BijiNoteObj *cur;
cur = bjb_window_base_get_note (window);
diff --git a/src/libbiji/biji-note-id.c b/src/libbiji/biji-note-id.c
index 94d0f92..e4d515a 100644
--- a/src/libbiji/biji-note-id.c
+++ b/src/libbiji/biji-note-id.c
@@ -193,7 +193,7 @@ biji_note_id_class_init (BijiNoteIDClass *klass)
gboolean
biji_note_id_equal (BijiNoteID *a, BijiNoteID *b)
{
- if (g_strcmp0 (a->priv->path, b->priv->path) &&
+ if (g_strcmp0 (a->priv->path, b->priv->path) == 0 &&
g_strcmp0 (a->priv->content ,b->priv->content) ==0)
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]