[gnote] Fix is_note_title_available
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix is_note_title_available
- Date: Sat, 25 Feb 2012 19:02:07 +0000 (UTC)
commit ce3db12d8a3cd4c107d2ec707293b914f082f38a
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Sat Feb 25 20:57:33 2012 +0200
Fix is_note_title_available
Incorrect condition, we are looking for non existing element.
src/synchronization/syncdialog.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/synchronization/syncdialog.cpp b/src/synchronization/syncdialog.cpp
index 7cb9efa..e2a6ce9 100644
--- a/src/synchronization/syncdialog.cpp
+++ b/src/synchronization/syncdialog.cpp
@@ -228,7 +228,7 @@ private:
}
bool is_note_title_available(const std::string & renamedTitle)
{
- return std::find(m_note_update_titles.begin(), m_note_update_titles.end(), renamedTitle) != m_note_update_titles.end()
+ return std::find(m_note_update_titles.begin(), m_note_update_titles.end(), renamedTitle) == m_note_update_titles.end()
&& m_existing_note->manager().find(renamedTitle) == 0;
}
void radio_toggled()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]