Skip to content

Commit

Permalink
[sqlitehistory][histview] Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-izo committed Jul 25, 2015
1 parent 3c0dc85 commit 3538e6d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/plugins/generic/histview/src/histview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ HistView::HistView()

HistView::~HistView()
{
//MenuController::removeAction(m_historyAction.data());

delete m_historyAction;
}

Expand Down
6 changes: 1 addition & 5 deletions src/plugins/generic/sqlitehistory/sqlitehistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ SqliteHistory::SqliteHistory() :
m_thread(new QThread),
m_worker(new SqliteWorker)
{

m_worker->moveToThread(m_thread);

connect(m_worker, SIGNAL(error(QString)), this, SLOT(errorHandler(QString)));
Expand Down Expand Up @@ -223,9 +222,6 @@ AsyncResult<QVector<History::ContactInfo>> SqliteHistory::contacts(const Account
query.bindValue(QStringLiteral(":protocol"), account.protocol);
query.exec();

qDebug() << query.executedQuery();
qDebug() << "account" << account.account;
qDebug() << "protocol" << account.protocol;
auto error = query.lastError();
if (error.isValid()) {
qDebug() << "Error type: " << error.type();
Expand Down Expand Up @@ -392,7 +388,7 @@ void SqliteWorker::prepareDb()
QSqlQuery query;

query.prepare(QStringLiteral("INSERT INTO qutim_history_version (key, value) "
"VALUES (:key, :value)"));
"VALUES (:key, :value)"));
query.bindValue(QStringLiteral(":key"), QStringLiteral("sqlitehistory"));
query.bindValue(QStringLiteral(":value"), currentVersion());
query.exec();
Expand Down
1 change: 0 additions & 1 deletion src/plugins/generic/sqlitehistory/sqlitehistory.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class SqliteWorker : public QObject
void shutdown();
public slots:
void process();
//void deleteLater();
signals:
void finished();
void error(const QString &error);
Expand Down

0 comments on commit 3538e6d

Please sign in to comment.