diff --git a/saoriaccount.cpp b/saoriaccount.cpp index 9b87c71..a9009bd 100644 --- a/saoriaccount.cpp +++ b/saoriaccount.cpp @@ -116,7 +116,6 @@ auto *reply = SaoriApplication::saori()->manager->get(request); connect(reply,&QNetworkReply::finished,[=](){ if (reply->error() == QNetworkReply::NoError) { - qDebug() << request.url().toString(); QByteArray data = reply->readAll(); emit apiData(timeline,data); } diff --git a/saoriaddaccountdialog.cpp b/saoriaddaccountdialog.cpp index 7038d9f..a26ea72 100644 --- a/saoriaddaccountdialog.cpp +++ b/saoriaddaccountdialog.cpp @@ -65,7 +65,8 @@ m_instance = SaoriApplication::findInstance(ui->instanceUrl_comboBox->currentText()); if (m_instance == nullptr) return; if (m_instance->clientId().isEmpty() || m_instance->clientSecret().isEmpty()) { - qDebug() << "regist"; + // FIXED インスタンスは記録されているがclientが登録されていない状態。 + return; } QDesktopServices::openUrl(m_instance->getAuthorizedUrl()); QString text = ui->instanceUrl_comboBox->currentText(); diff --git a/saoriview.cpp b/saoriview.cpp index 42b396a..44a9e4b 100644 --- a/saoriview.cpp +++ b/saoriview.cpp @@ -88,7 +88,6 @@ void SaoriView::reload() { - qDebug() << "reload."; auto saoriaccount = SaoriApplication::saori()->findAccount(m_account); if (saoriaccount == nullptr) return; if (m_entries.count() == 0) m_maxid = 0; @@ -239,19 +238,16 @@ if (timeline != m_viewname) return; QJsonArray json = QJsonDocument::fromJson(data).array(); for (auto j:json) { - qDebug() << j.toObject()["content"].toString(); int i = 0; SaoriViewEntry *entry = nullptr; for(;m_entries.count() > i;i ++) { if (m_entries.at(i)->id() == j.toObject()["id"].toString().toLongLong()) { entry = m_entries.at(i); - qDebug() << "update"; break; } if (m_entries.at(i)->id() < j.toObject()["id"].toString().toLongLong()) break; } if (entry == nullptr) { - qDebug() << j.toObject()["id"].toString().toLong(); entry = new SaoriViewEntry(j.toObject()["id"].toString().toLongLong(),ui->scrollAreaWidgetContents); connect(entry,&SaoriViewEntry::anchorClicked,this,&SaoriView::linkClicked); m_entries.insert(i,entry); @@ -266,7 +262,6 @@ void SaoriView::linkClicked(const QUrl &url) { - qDebug() << "clicked:" << url.toString(); if (url.toString().left(6) == "media:") { QUrl u(url.toString().mid(6)); emit openMediaView(u); diff --git a/saoriviewentry.cpp b/saoriviewentry.cpp index dc71f11..58d0d4f 100644 --- a/saoriviewentry.cpp +++ b/saoriviewentry.cpp @@ -62,7 +62,6 @@ imageResizer(i.left(p),img); document()->addResource(QTextDocument::ImageResource,QUrl("img:" + m_urlmap[i]),QVariant(img)); } - qDebug() << designedText(); setText(designedText()); // QTextBrowserのサイズを確定させるトリック。 QResizeEvent e(size(),size());