[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/blogilo/src
From: Mehrdad Momeny <mehrdad.momeny () gmail ! com>
Date: 2010-12-18 8:36:07
Message-ID: 20101218083607.6A96AAC8AA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1207461 by momeny:
Notify user when saving locally faild, + dialog caption
M +1 -1 composer/dialogs/addeditlink.cpp
M +6 -1 postentry.cpp
--- trunk/KDE/kdepim/blogilo/src/composer/dialogs/addeditlink.cpp #1207460:1207461
@@ -40,7 +40,7 @@
initUi();
d->ui.txtAddress->insertUrl(0, QString());
d->ui.txtAddress->setCurrentIndex(0);
-// this->setWindowTitle( i18nc( "verb, to insert a link into the text", "Add \
Link" ) );//TODO uncomment + this->setWindowTitle( i18nc( "verb, to insert a link \
into the text", "Add Link" ) ); }
AddEditLink::AddEditLink(const QString& address, const QString& title, const \
QString& target,
--- trunk/KDE/kdepim/blogilo/src/postentry.cpp #1207460:1207461
@@ -494,7 +494,12 @@
are you sure you want to save an empty post?")) == KMessageBox::No )
return;
}
- d->mCurrentPost.setLocalId( DBMan::self()->saveLocalEntry( *currentPost(), \
d->mCurrentPostBlogId ) ); + int resId = DBMan::self()->saveLocalEntry( \
*currentPost(), d->mCurrentPostBlogId ); + if(resId == -1){
+ KMessageBox::detailedSorry(this, i18n("Saving post locally failed."), \
DBMan::self()->lastErrorText()); + return;
+ }
+ d->mCurrentPost.setLocalId( resId );
emit postSavedLocally();
emit showStatusMessage(i18n( "Post saved locally." ), false);
kDebug()<<"Locally saved";
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic