Commit e2f9670d authored by JanKusanagi's avatar JanKusanagi

Prevent a comment composer in a post that gets deleted, from blocking updates

parent 5e5731fe
......@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
{
QApplication dianaraApp(argc, argv);
dianaraApp.setApplicationName("Dianara");
dianaraApp.setApplicationVersion("1.4.2-dev+8");
dianaraApp.setApplicationVersion("1.4.2-dev+9");
dianaraApp.setOrganizationName("JanCoding");
dianaraApp.setOrganizationDomain("jancoding.wordpress.com");
......
......@@ -1670,6 +1670,13 @@ void Post::setPostDeleted(QString postDeletedTime)
m_postOriginalText.prepend("<center>" + postDeletedTime + "</center>");
qDebug() << "This post was deleted on" << postDeletedTime;
// Cancel a possible comment being composed
// Otherwise this disabled post would block timeline updates forever
if (this->isBeingCommented())
{
m_commenterBlock->setMinimumMode();
}
m_postIsDeleted = true;
this->setDisabled(true);
this->setPostContents();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment