summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--library/backend/contact.h4
-rw-r--r--library/backend/timeconversion.cpp9
-rw-r--r--library/library.pro2
3 files changed, 13 insertions, 2 deletions
diff --git a/library/backend/contact.h b/library/backend/contact.h
index 4999430..2294986 100644
--- a/library/backend/contact.h
+++ b/library/backend/contact.h
@@ -205,2 +205,4 @@ public:
+ void setEmails( const QString &v );
+ QString emails() const { return find( Qtopia::Emails ); }
private:
@@ -213,4 +215,2 @@ private:
// the emails should be seperated by a comma
- void setEmails( const QString &v );
- QString emails() const { return find( Qtopia::Emails ); }
diff --git a/library/backend/timeconversion.cpp b/library/backend/timeconversion.cpp
index 3c25922..df7b0d5 100644
--- a/library/backend/timeconversion.cpp
+++ b/library/backend/timeconversion.cpp
@@ -27,2 +27,6 @@ QString TimeConversion::toString( const QDate &d )
{
+ QString empty;
+ if ( d.isNull() )
+ return empty;
+
QString r = QString::number( d.day() ) + "." +
@@ -31,2 +35,3 @@ QString TimeConversion::toString( const QDate &d )
//qDebug("TimeConversion::toString %s", r.latin1());
+
return r;
@@ -36,2 +41,6 @@ QDate TimeConversion::fromString( const QString &datestr )
{
+ QDate empty;
+ if ( datestr.isEmpty() )
+ return empty;
+
int monthPos = datestr.find('.');
diff --git a/library/library.pro b/library/library.pro
index fba98f8..142c609 100644
--- a/library/library.pro
+++ b/library/library.pro
@@ -115,2 +115,4 @@ SOURCES = calendar.cpp \
lnkproperties.cpp
+# QPE crashes on my Notebook if it tries to play sound
+DEFINES = QT_NO_SOUND
# Qt 3 compatibility