[glom/maemo5] check_document_hosting_mode_is_supported():
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [glom/maemo5] check_document_hosting_mode_is_supported():
- Date: Sat, 5 Sep 2009 13:47:34 +0000 (UTC)
commit b094ff324ff747533c9efbaadc4d79dcfc238d0e
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Sep 5 15:47:27 2009 +0200
check_document_hosting_mode_is_supported():
Correct and ifdef to an ifndef.
ChangeLog | 5 +++++
glom/application.cc | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 585d133..d825dae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-09-05 Murray Cumming <murrayc murrayc com>
+ * glom/application.cc: check_document_hosting_mode_is_supported():
+ Correct and ifdef to an ifndef.
+
+2009-09-05 Murray Cumming <murrayc murrayc com>
+
Maemo: Use Hildon::FileChooserDialog for opening files.
* glom/application.[h|cc]: Remove unused (and unnecessary since the new
diff --git a/glom/application.cc b/glom/application.cc
index 2af14b9..8e45730 100644
--- a/glom/application.cc
+++ b/glom/application.cc
@@ -907,7 +907,7 @@ bool App_Glom::check_document_hosting_mode_is_supported(Document* document)
}
case Document::HOSTING_MODE_SQLITE:
{
- #ifdef GLOM_ENABLE_SQLITE
+ #ifndef GLOM_ENABLE_SQLITE
error_message = _("The file cannot be opened because this version of Glom does not support SQLite databases.");
#endif //GLOM_ENABLE_SQLITE
@@ -939,7 +939,6 @@ bool App_Glom::on_document_load()
if(!pDocument)
return false;
- std::cout << "debug: is_new(): " << pDocument->get_is_new() << std::endl;
if(!pDocument->get_is_new() && check_document_hosting_mode_is_supported(pDocument))
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]