[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [choqok] libchoqok/ui: Possible fix for Bug:303075 crash
From: Mehrdad Momeny <mehrdad.momeny () gmail ! com>
Date: 2013-01-01 4:50:02
Message-ID: 20130101045002.8734AA60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 5079a06a3158886edddf483b51926b7d80e25309 by Mehrdad Momeny.
Committed on 01/01/2013 at 05:48.
Pushed by momeny into branch 'master'.
Possible fix for Bug:303075 crash
M +4 -0 libchoqok/ui/postwidget.cpp
http://commits.kde.org/choqok/5079a06a3158886edddf483b51926b7d80e25309
diff --git a/libchoqok/ui/postwidget.cpp b/libchoqok/ui/postwidget.cpp
index 7ad4824..f592793 100644
--- a/libchoqok/ui/postwidget.cpp
+++ b/libchoqok/ui/postwidget.cpp
@@ -451,6 +451,10 @@ QString PostWidget::formatDateTime(const KDateTime& time)
QString PostWidget::formatDateTime( const QDateTime& time )
{
+ if ( !time.isValid() )
+ {
+ return tr("Invalid Time");
+ }
int seconds = time.secsTo( QDateTime::currentDateTime() );
if ( seconds <= 15 ) {
d->mTimer.setInterval( _15SECS );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic