Commit aaf37085 authored by Laurent Montel's avatar Laurent Montel 😁

Remove unused debug

parent ef7cb307
...@@ -51,8 +51,6 @@ ProviderPage::ProviderPage(KAssistantDialog *parent) : ...@@ -51,8 +51,6 @@ ProviderPage::ProviderPage(KAssistantDialog *parent) :
m_downloadManager->setSearchOrder(KNS3::DownloadManager::Alphabetical); m_downloadManager->setSearchOrder(KNS3::DownloadManager::Alphabetical);
connect(ui.listView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &ProviderPage::selectionChanged); connect(ui.listView->selectionModel(), &QItemSelectionModel::selectionChanged, this, &ProviderPage::selectionChanged);
qCDebug(ACCOUNTWIZARD_LOG);
} }
void ProviderPage::startFetchingData() void ProviderPage::startFetchingData()
...@@ -62,7 +60,6 @@ void ProviderPage::startFetchingData() ...@@ -62,7 +60,6 @@ void ProviderPage::startFetchingData()
void ProviderPage::fillModel(const KNS3::Entry::List &list) void ProviderPage::fillModel(const KNS3::Entry::List &list)
{ {
qCDebug(ACCOUNTWIZARD_LOG);
m_model->removeRows(m_model->indexFromItem(m_fetchItem).row(), 1); m_model->removeRows(m_model->indexFromItem(m_fetchItem).row(), 1);
// KNS3::Entry::Entry() is private, so we need to save the whole list. // KNS3::Entry::Entry() is private, so we need to save the whole list.
......
...@@ -74,7 +74,6 @@ public: ...@@ -74,7 +74,6 @@ public:
AddEditBlog::AddEditBlog(int blog_id, QWidget *parent) AddEditBlog::AddEditBlog(int blog_id, QWidget *parent)
: QDialog(parent), d(new Private) : QDialog(parent), d(new Private)
{ {
qCDebug(BLOGILO_LOG);
QVBoxLayout *mainLayout = new QVBoxLayout(this); QVBoxLayout *mainLayout = new QVBoxLayout(this);
d->mainW = new QTabWidget(this); d->mainW = new QTabWidget(this);
d->ui.setupUi(d->mainW); d->ui.setupUi(d->mainW);
...@@ -146,7 +145,6 @@ void AddEditBlog::enableAutoConfBtn() ...@@ -146,7 +145,6 @@ void AddEditBlog::enableAutoConfBtn()
void AddEditBlog::autoConfigure() void AddEditBlog::autoConfigure()
{ {
qCDebug(BLOGILO_LOG);
if (d->ui.txtUrl->text().isEmpty() || d->ui.txtUser->text().isEmpty() || d->ui.txtPass->text().isEmpty()) { if (d->ui.txtUrl->text().isEmpty() || d->ui.txtUser->text().isEmpty() || d->ui.txtPass->text().isEmpty()) {
qCDebug(BLOGILO_LOG) << "Username, Password or URL not set!"; qCDebug(BLOGILO_LOG) << "Username, Password or URL not set!";
KMessageBox::sorry(this, i18n("You have to set the username, password and URL of your blog or website."), KMessageBox::sorry(this, i18n("You have to set the username, password and URL of your blog or website."),
...@@ -260,7 +258,6 @@ void AddEditBlog::gotHtml(KJob *job) ...@@ -260,7 +258,6 @@ void AddEditBlog::gotHtml(KJob *job)
void AddEditBlog::gotXmlRpcTest(KJob *job) void AddEditBlog::gotXmlRpcTest(KJob *job)
{ {
qCDebug(BLOGILO_LOG);
d->mFetchAPITimer->deleteLater(); d->mFetchAPITimer->deleteLater();
if (!job) { if (!job) {
return; return;
...@@ -328,7 +325,6 @@ void AddEditBlog::fetchBlogId() ...@@ -328,7 +325,6 @@ void AddEditBlog::fetchBlogId()
void AddEditBlog::handleFetchIDTimeout() void AddEditBlog::handleFetchIDTimeout()
{ {
qCDebug(BLOGILO_LOG);
if (d->mFetchBlogIdTimer) { if (d->mFetchBlogIdTimer) {
d->mFetchBlogIdTimer->stop(); d->mFetchBlogIdTimer->stop();
} }
...@@ -345,7 +341,6 @@ void AddEditBlog::handleFetchIDTimeout() ...@@ -345,7 +341,6 @@ void AddEditBlog::handleFetchIDTimeout()
void AddEditBlog::handleFetchAPITimeout() void AddEditBlog::handleFetchAPITimeout()
{ {
qCDebug(BLOGILO_LOG);
d->mFetchAPITimer->deleteLater(); d->mFetchAPITimer->deleteLater();
d->mFetchAPITimer = Q_NULLPTR; d->mFetchAPITimer = Q_NULLPTR;
hideWaitWidget(); hideWaitWidget();
...@@ -479,7 +474,6 @@ void AddEditBlog::slotReturnPressed() ...@@ -479,7 +474,6 @@ void AddEditBlog::slotReturnPressed()
AddEditBlog::~AddEditBlog() AddEditBlog::~AddEditBlog()
{ {
qCDebug(BLOGILO_LOG);
delete d; delete d;
} }
......
...@@ -82,7 +82,6 @@ Backend::Backend(int blog_id, QObject *parent) ...@@ -82,7 +82,6 @@ Backend::Backend(int blog_id, QObject *parent)
Backend::~Backend() Backend::~Backend()
{ {
qCDebug(BLOGILO_LOG);
delete d; delete d;
} }
...@@ -347,7 +346,6 @@ void Backend::error(KBlog::Blog::ErrorType type, const QString &errorMessage) ...@@ -347,7 +346,6 @@ void Backend::error(KBlog::Blog::ErrorType type, const QString &errorMessage)
void Backend::slotMediaError(KBlog::Blog::ErrorType type, const QString &errorMessage, void Backend::slotMediaError(KBlog::Blog::ErrorType type, const QString &errorMessage,
KBlog::BlogMedia *media) KBlog::BlogMedia *media)
{ {
qCDebug(BLOGILO_LOG);
QString errType = errorTypeToString(type); QString errType = errorTypeToString(type);
errType += errorMessage; errType += errorMessage;
qCDebug(BLOGILO_LOG) << errType; qCDebug(BLOGILO_LOG) << errType;
......
...@@ -151,7 +151,6 @@ void BilboPost::setCategoryList(const QVector<Category> &list) ...@@ -151,7 +151,6 @@ void BilboPost::setCategoryList(const QVector<Category> &list)
void BilboPost::setProperties(const BilboPost &postProp) void BilboPost::setProperties(const BilboPost &postProp)
{ {
qCDebug(BLOGILO_LOG);
this->setCreationDateTime(postProp.creationDateTime()); this->setCreationDateTime(postProp.creationDateTime());
this->setModificationDateTime(postProp.modificationDateTime()); this->setModificationDateTime(postProp.modificationDateTime());
this->setLink(postProp.link()); this->setLink(postProp.link());
......
...@@ -232,12 +232,10 @@ bool BloggerPrivate::handleError(KGAPI2::Job *job) ...@@ -232,12 +232,10 @@ bool BloggerPrivate::handleError(KGAPI2::Job *job)
Blogger::Blogger(const QUrl &server, QObject *parent) Blogger::Blogger(const QUrl &server, QObject *parent)
: Blog(server, *new BloggerPrivate(this), parent) : Blog(server, *new BloggerPrivate(this), parent)
{ {
qCDebug(BLOGILO_LOG);
} }
Blogger::~Blogger() Blogger::~Blogger()
{ {
qCDebug(BLOGILO_LOG);
} }
QString Blogger::interfaceName() const QString Blogger::interfaceName() const
......
...@@ -54,7 +54,6 @@ BilboBrowser::BilboBrowser(QWidget *parent) ...@@ -54,7 +54,6 @@ BilboBrowser::BilboBrowser(QWidget *parent)
BilboBrowser::~BilboBrowser() BilboBrowser::~BilboBrowser()
{ {
qCDebug(BLOGILO_LOG);
} }
void BilboBrowser::createUi(QWidget *parent) void BilboBrowser::createUi(QWidget *parent)
......
...@@ -53,7 +53,6 @@ StyleGetter::StyleGetter(const int blogid, QObject *parent) ...@@ -53,7 +53,6 @@ StyleGetter::StyleGetter(const int blogid, QObject *parent)
mParent(Q_NULLPTR), mParent(Q_NULLPTR),
b(Q_NULLPTR) b(Q_NULLPTR)
{ {
qCDebug(BLOGILO_LOG);
BilboBlog *tempBlog = DBMan::self()->blog(blogid); BilboBlog *tempBlog = DBMan::self()->blog(blogid);
if (tempBlog->isError()) { if (tempBlog->isError()) {
KMessageBox::detailedError(mParent, i18n("Cannot fetch the selected blog style."), KMessageBox::detailedError(mParent, i18n("Cannot fetch the selected blog style."),
...@@ -90,14 +89,12 @@ StyleGetter::StyleGetter(const int blogid, QObject *parent) ...@@ -90,14 +89,12 @@ StyleGetter::StyleGetter(const int blogid, QObject *parent)
StyleGetter::~StyleGetter() StyleGetter::~StyleGetter()
{ {
qCDebug(BLOGILO_LOG);
} }
QString StyleGetter::styledHtml(const int blogid, QString StyleGetter::styledHtml(const int blogid,
const QString &title, const QString &title,
const QString &content) const QString &content)
{ {
qCDebug(BLOGILO_LOG);
QString url = QStringLiteral("blogilo/%1/").arg(blogid); QString url = QStringLiteral("blogilo/%1/").arg(blogid);
url = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + url; url = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + QLatin1Char('/') + url;
QUrl dest(url); QUrl dest(url);
...@@ -132,7 +129,6 @@ QString StyleGetter::styledHtml(const int blogid, ...@@ -132,7 +129,6 @@ QString StyleGetter::styledHtml(const int blogid,
void StyleGetter::slotTempPostPublished(int blogId, BilboPost *post) void StyleGetter::slotTempPostPublished(int blogId, BilboPost *post)
{ {
qCDebug(BLOGILO_LOG);
QUrl postUrl; QUrl postUrl;
// postUrl = post->permaLink(); // postUrl = post->permaLink();
...@@ -158,7 +154,6 @@ void StyleGetter::slotTempPostPublished(int blogId, BilboPost *post) ...@@ -158,7 +154,6 @@ void StyleGetter::slotTempPostPublished(int blogId, BilboPost *post)
void StyleGetter::slotHtmlCopied(KJob *job) void StyleGetter::slotHtmlCopied(KJob *job)
{ {
qCDebug(BLOGILO_LOG);
if (job->error()) { if (job->error()) {
KMessageBox::detailedError(mParent, i18n("Cannot get html file."), KMessageBox::detailedError(mParent, i18n("Cannot get html file."),
job->errorString()); job->errorString());
...@@ -224,7 +219,6 @@ void StyleGetter::slotTempPostRemoved(int blog_id, const BilboPost &post) ...@@ -224,7 +219,6 @@ void StyleGetter::slotTempPostRemoved(int blog_id, const BilboPost &post)
void StyleGetter::generateRandomPostStrings() void StyleGetter::generateRandomPostStrings()
{ {
qCDebug(BLOGILO_LOG);
srand(time(Q_NULLPTR)); srand(time(Q_NULLPTR));
int postRandomNumber = rand(); int postRandomNumber = rand();
mPostTitle = QStringLiteral("%1%2").arg(QLatin1String(POST_TITLE)).arg(postRandomNumber); mPostTitle = QStringLiteral("%1%2").arg(QLatin1String(POST_TITLE)).arg(postRandomNumber);
...@@ -233,7 +227,6 @@ void StyleGetter::generateRandomPostStrings() ...@@ -233,7 +227,6 @@ void StyleGetter::generateRandomPostStrings()
void StyleGetter::slotError(const QString &errMsg) void StyleGetter::slotError(const QString &errMsg)
{ {
qCDebug(BLOGILO_LOG);
KMessageBox::detailedError(mParent, i18n("An error occurred in the latest transaction."), errMsg); KMessageBox::detailedError(mParent, i18n("An error occurred in the latest transaction."), errMsg);
b->deleteLater(); b->deleteLater();
} }
......
...@@ -108,7 +108,6 @@ void BlogiloComposerWebEngineEditor::setReadOnly(bool _readOnly) ...@@ -108,7 +108,6 @@ void BlogiloComposerWebEngineEditor::setReadOnly(bool _readOnly)
QList< BilboMedia * > BlogiloComposerWebEngineEditor::getLocalImages() QList< BilboMedia * > BlogiloComposerWebEngineEditor::getLocalImages()
{ {
qCDebug(BLOGILO_LOG);
QList< BilboMedia * > list; QList< BilboMedia * > list;
#if 0 #if 0
QWebElementCollection images = view()->page()->mainFrame()->findAllElements(QStringLiteral("img")); QWebElementCollection images = view()->page()->mainFrame()->findAllElements(QStringLiteral("img"));
......
...@@ -96,7 +96,6 @@ DBMan::DBMan() ...@@ -96,7 +96,6 @@ DBMan::DBMan()
DBMan::~DBMan() DBMan::~DBMan()
{ {
qCDebug(BLOGILO_LOG);
d->db.close(); d->db.close();
if (d->useWallet) { if (d->useWallet) {
d->mWallet->deleteLater(); d->mWallet->deleteLater();
...@@ -138,7 +137,6 @@ void DBMan::reloadBlogList() ...@@ -138,7 +137,6 @@ void DBMan::reloadBlogList()
bool DBMan::connectDB() bool DBMan::connectDB()
{ {
qCDebug(BLOGILO_LOG);
if (d->db.isOpen()) { if (d->db.isOpen()) {
return true; return true;
} }
...@@ -166,7 +164,6 @@ Will create configuration database! ...@@ -166,7 +164,6 @@ Will create configuration database!
*/ */
bool DBMan::createDB() bool DBMan::createDB()
{ {
qCDebug(BLOGILO_LOG);
bool ret = true; bool ret = true;
if (!connectDB()) { if (!connectDB()) {
exit(1); exit(1);
...@@ -537,7 +534,6 @@ int DBMan::addPost(const BilboPost &post, int blog_id) ...@@ -537,7 +534,6 @@ int DBMan::addPost(const BilboPost &post, int blog_id)
bool DBMan::editPost(const BilboPost &post, int blog_id) bool DBMan::editPost(const BilboPost &post, int blog_id)
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
q.prepare(QStringLiteral("UPDATE post SET author=?, title=?, content=?, text_more=?, c_time=?, m_time=?,\ q.prepare(QStringLiteral("UPDATE post SET author=?, title=?, content=?, text_more=?, c_time=?, m_time=?,\
is_private=?, is_comment_allowed=?, is_trackback_allowed=?, link=?, perma_link=?, summary=?,\ is_private=?, is_comment_allowed=?, is_trackback_allowed=?, link=?, perma_link=?, summary=?,\
...@@ -753,7 +749,6 @@ int DBMan::saveTempEntry(const BilboPost &post, int blog_id) ...@@ -753,7 +749,6 @@ int DBMan::saveTempEntry(const BilboPost &post, int blog_id)
int DBMan::saveTemp_LocalEntry(const BilboPost &basePost, int blog_id, LocalPostState state) int DBMan::saveTemp_LocalEntry(const BilboPost &basePost, int blog_id, LocalPostState state)
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
BilboPost post = basePost; BilboPost post = basePost;
// qCDebug(BLOGILO_LOG)<<"postId: "<<post.postId(); // qCDebug(BLOGILO_LOG)<<"postId: "<<post.postId();
...@@ -902,7 +897,6 @@ int DBMan::saveTemp_LocalEntry(const BilboPost &basePost, int blog_id, LocalPost ...@@ -902,7 +897,6 @@ int DBMan::saveTemp_LocalEntry(const BilboPost &basePost, int blog_id, LocalPost
bool DBMan::removeLocalEntry(const BilboPost &post) bool DBMan::removeLocalEntry(const BilboPost &post)
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
q.prepare(QStringLiteral("DELETE FROM local_post WHERE local_id=?")); q.prepare(QStringLiteral("DELETE FROM local_post WHERE local_id=?"));
q.addBindValue(post.localId()); q.addBindValue(post.localId());
...@@ -916,7 +910,6 @@ bool DBMan::removeLocalEntry(const BilboPost &post) ...@@ -916,7 +910,6 @@ bool DBMan::removeLocalEntry(const BilboPost &post)
bool DBMan::removeLocalEntry(int local_id) bool DBMan::removeLocalEntry(int local_id)
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
q.prepare(QStringLiteral("DELETE FROM local_post WHERE local_id=?")); q.prepare(QStringLiteral("DELETE FROM local_post WHERE local_id=?"));
q.addBindValue(local_id); q.addBindValue(local_id);
...@@ -930,7 +923,6 @@ bool DBMan::removeLocalEntry(int local_id) ...@@ -930,7 +923,6 @@ bool DBMan::removeLocalEntry(int local_id)
bool DBMan::removeTempEntry(const BilboPost &post) bool DBMan::removeTempEntry(const BilboPost &post)
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
q.prepare(QStringLiteral("DELETE FROM temp_post WHERE local_id=?")); q.prepare(QStringLiteral("DELETE FROM temp_post WHERE local_id=?"));
q.addBindValue(post.localId()); q.addBindValue(post.localId());
...@@ -945,7 +937,6 @@ bool DBMan::removeTempEntry(const BilboPost &post) ...@@ -945,7 +937,6 @@ bool DBMan::removeTempEntry(const BilboPost &post)
bool DBMan::clearTempEntries() bool DBMan::clearTempEntries()
{ {
qCDebug(BLOGILO_LOG);
QSqlQuery q; QSqlQuery q;
bool res = q.exec(QStringLiteral("DELETE FROM temp_post")); bool res = q.exec(QStringLiteral("DELETE FROM temp_post"));
if (!res) { if (!res) {
......
...@@ -29,12 +29,10 @@ int __currentBlogId; ...@@ -29,12 +29,10 @@ int __currentBlogId;
void global_init() void global_init()
{ {
qCDebug(BLOGILO_LOG);
__currentBlogId = -1; __currentBlogId = -1;
} }
void global_end() void global_end()
{ {
qCDebug(BLOGILO_LOG);
delete DBMan::self(); delete DBMan::self();
} }
...@@ -227,7 +227,6 @@ void MainWindow::setupActions() ...@@ -227,7 +227,6 @@ void MainWindow::setupActions()
void MainWindow::loadTempPosts() void MainWindow::loadTempPosts()
{ {
qCDebug(BLOGILO_LOG);
QMap<BilboPost *, int> tempList = DBMan::self()->listTempPosts(); QMap<BilboPost *, int> tempList = DBMan::self()->listTempPosts();
const int count = tempList.count(); const int count = tempList.count();
if (count > 0) { if (count > 0) {
...@@ -291,8 +290,6 @@ void MainWindow::currentBlogChanged(QAction *act) ...@@ -291,8 +290,6 @@ void MainWindow::currentBlogChanged(QAction *act)
void MainWindow::slotCreateNewPost() void MainWindow::slotCreateNewPost()
{ {
qCDebug(BLOGILO_LOG);
tabPosts->setCurrentWidget(createPostEntry(mCurrentBlogId, BilboPost())); tabPosts->setCurrentWidget(createPostEntry(mCurrentBlogId, BilboPost()));
if (mCurrentBlogId == -1) { if (mCurrentBlogId == -1) {
if (!blogs->items().isEmpty()) { if (!blogs->items().isEmpty()) {
...@@ -409,7 +406,6 @@ void MainWindow::setupSystemTray() ...@@ -409,7 +406,6 @@ void MainWindow::setupSystemTray()
void MainWindow::slotPostTitleChanged(const QString &title) void MainWindow::slotPostTitleChanged(const QString &title)
{ {
// qCDebug(BLOGILO_LOG);
tabPosts->setTabText(tabPosts->currentIndex(), title); tabPosts->setTabText(tabPosts->currentIndex(), title);
} }
...@@ -452,7 +448,6 @@ void MainWindow::slotActivePostChanged(int index) ...@@ -452,7 +448,6 @@ void MainWindow::slotActivePostChanged(int index)
void MainWindow::slotPublishPost() void MainWindow::slotPublishPost()
{ {
qCDebug(BLOGILO_LOG);
if (mCurrentBlogId == -1) { if (mCurrentBlogId == -1) {
KMessageBox::sorry(this, i18n("You have to select a blog to publish this post to.")); KMessageBox::sorry(this, i18n("You have to select a blog to publish this post to."));
return; return;
...@@ -492,7 +487,7 @@ void MainWindow::slotRemoveAllExclude(int pos) ...@@ -492,7 +487,7 @@ void MainWindow::slotRemoveAllExclude(int pos)
void MainWindow::slotRemovePostEntry(int pos) void MainWindow::slotRemovePostEntry(int pos)
{ {
qCDebug(BLOGILO_LOG);
PostEntry *widget = qobject_cast<PostEntry *>(tabPosts->widget(pos)); PostEntry *widget = qobject_cast<PostEntry *>(tabPosts->widget(pos));
...@@ -516,14 +511,14 @@ void MainWindow::slotRemovePostEntry(int pos) ...@@ -516,14 +511,14 @@ void MainWindow::slotRemovePostEntry(int pos)
void MainWindow::slotNewPostOpened(BilboPost &newPost, int blog_id) void MainWindow::slotNewPostOpened(BilboPost &newPost, int blog_id)
{ {
qCDebug(BLOGILO_LOG);
QWidget *w = createPostEntry(blog_id, newPost); QWidget *w = createPostEntry(blog_id, newPost);
tabPosts->setCurrentWidget(w); tabPosts->setCurrentWidget(w);
} }
void MainWindow::slotSavePostLocally() void MainWindow::slotSavePostLocally()
{ {
qCDebug(BLOGILO_LOG);
if (activePost && (tabPosts->count() > 0)) { if (activePost && (tabPosts->count() > 0)) {
toolbox->getFieldsValue(activePost->currentPost()); toolbox->getFieldsValue(activePost->currentPost());
activePost->saveLocally(); activePost->saveLocally();
...@@ -541,7 +536,7 @@ void MainWindow::slotError(const QString &errorMessage) ...@@ -541,7 +536,7 @@ void MainWindow::slotError(const QString &errorMessage)
void MainWindow::writeConfigs() void MainWindow::writeConfigs()
{ {
qCDebug(BLOGILO_LOG);
if (toolboxDock->isVisible()) { if (toolboxDock->isVisible()) {
Settings::setShowToolboxOnStart(true); Settings::setShowToolboxOnStart(true);
} else { } else {
...@@ -580,7 +575,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event) ...@@ -580,7 +575,7 @@ void MainWindow::keyPressEvent(QKeyEvent *event)
void MainWindow::postManipulationDone(bool isError, const QString &customMessage) void MainWindow::postManipulationDone(bool isError, const QString &customMessage)
{ {
qCDebug(BLOGILO_LOG);
if (isError) { if (isError) {
KMessageBox::detailedError(this, i18n("Submitting post failed"), customMessage); KMessageBox::detailedError(this, i18n("Submitting post failed"), customMessage);
} else { } else {
...@@ -630,7 +625,7 @@ void MainWindow::slotBusy(bool isBusy) ...@@ -630,7 +625,7 @@ void MainWindow::slotBusy(bool isBusy)
QWidget *MainWindow::createPostEntry(int blog_id, const BilboPost &post) QWidget *MainWindow::createPostEntry(int blog_id, const BilboPost &post)
{ {
qCDebug(BLOGILO_LOG);
PostEntry *temp = new PostEntry(this); PostEntry *temp = new PostEntry(this);
temp->setAttribute(Qt::WA_DeleteOnClose); temp->setAttribute(Qt::WA_DeleteOnClose);
temp->setCurrentPost(post); temp->setCurrentPost(post);
......
...@@ -114,7 +114,7 @@ PostEntry::~PostEntry() ...@@ -114,7 +114,7 @@ PostEntry::~PostEntry()
void PostEntry::settingsChanged() void PostEntry::settingsChanged()
{ {
qCDebug(BLOGILO_LOG);
d->mTimer->setInterval(Settings::autosaveInterval() * MINUTE); d->mTimer->setInterval(Settings::autosaveInterval() * MINUTE);
if (Settings::autosaveInterval()) { if (Settings::autosaveInterval()) {
d->mTimer->start(); d->mTimer->start();
...@@ -294,7 +294,7 @@ void PostEntry::setCurrentPostBlogId(int blog_id) ...@@ -294,7 +294,7 @@ void PostEntry::setCurrentPostBlogId(int blog_id)
void PostEntry::setCurrentPostFromEditor() void PostEntry::setCurrentPostFromEditor()
{ {
if (d->isPostContentModified) { if (d->isPostContentModified) {
qCDebug(BLOGILO_LOG);
const QString &str = htmlContent(); const QString &str = htmlContent();
d->mCurrentPost.setContent(str); d->mCurrentPost.setContent(str);
d->isPostContentModified = false; d->isPostContentModified = false;
...@@ -323,7 +323,7 @@ Qt::LayoutDirection PostEntry::defaultLayoutDirection() const ...@@ -323,7 +323,7 @@ Qt::LayoutDirection PostEntry::defaultLayoutDirection() const
void PostEntry::setDefaultLayoutDirection(Qt::LayoutDirection direction) void PostEntry::setDefaultLayoutDirection(Qt::LayoutDirection direction)
{ {
qCDebug(BLOGILO_LOG);
d->tabWidget->setLayoutDirection(direction); d->tabWidget->setLayoutDirection(direction);
d->txtTitle->setLayoutDirection(direction); d->txtTitle->setLayoutDirection(direction);
} }
...@@ -512,7 +512,7 @@ void PostEntry::saveTemporary() ...@@ -512,7 +512,7 @@ void PostEntry::saveTemporary()
void PostEntry::slotPostModified() void PostEntry::slotPostModified()
{ {
qCDebug(BLOGILO_LOG);
disconnect(this, &PostEntry::textChanged, this, &PostEntry::slotPostModified); disconnect(this, &PostEntry::textChanged, this, &PostEntry::slotPostModified);
// disconnect( txtTitle, SIGNAL(textChanged(QString)), this, SLOT(slotPostModified()) ); // disconnect( txtTitle, SIGNAL(textChanged(QString)), this, SLOT(slotPostModified()) );
// Q_EMIT postModified(); // Q_EMIT postModified();
......
...@@ -79,7 +79,7 @@ bool SyncUploader::uploadMedia(Backend *backend, BilboMedia *media) ...@@ -79,7 +79,7 @@ bool SyncUploader::uploadMedia(Backend *backend, BilboMedia *media)
void SyncUploader::slotMediaFileUploaded(BilboMedia *media) void SyncUploader::slotMediaFileUploaded(BilboMedia *media)
{ {
if (media && media == d->mCurrentMedia) { if (media && media == d->mCurrentMedia) {
qCDebug(BLOGILO_LOG);
d->success = true; d->success = true;
d->loop->exit(); d->loop->exit();
} }
......
...@@ -423,7 +423,7 @@ void Toolbox::setButtonsIcon() ...@@ -423,7 +423,7 @@ void Toolbox::setButtonsIcon()
void Toolbox::reloadLocalPosts() void Toolbox::reloadLocalPosts()
{ {
qCDebug(BLOGILO_LOG);
localEntries->clear(); localEntries->clear();
......
...@@ -28,31 +28,31 @@ ...@@ -28,31 +28,31 @@
WaitWidget::WaitWidget(QWidget *parent) WaitWidget::WaitWidget(QWidget *parent)
: QDialog(parent) : QDialog(parent)
{ {
qCDebug(BLOGILO_LOG);
setupUi(this); setupUi(this);
} }
WaitWidget::~WaitWidget()