Commit 821ea9fa authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

No save file dialogs


Signed-off-by: Waqar Ahmed's avatarWaqar Ahmed <waqar.17a@gmail.com>
parent 18bdeca0
......@@ -113,12 +113,11 @@ public:
m_fixedView.defaultMenu = m_fixedView.view->contextMenu();
}
if (m_fixedView.view->document()) {
m_fixedView.view->document()->setText(QString::fromUtf8(contents));
m_fixedView.view->document()->setHighlightingMode(QStringLiteral("Diff"));
m_fixedView.restoreMenu();
}
m_fixedView.view->document()->setText(QString::fromUtf8(contents));
m_fixedView.view->document()->setHighlightingMode(QStringLiteral("Diff"));
/** We don't want save dialog on close */
m_fixedView.view->document()->setModified(false);
m_fixedView.restoreMenu();
}
/**
......
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