Commit ab4171ea authored by loh tar's avatar loh tar Committed by Christoph Cullmann

CloseExceptPlugin: Disable debug messages

Reviewers: #kate, cullmann

Reviewed By: #kate, cullmann

Subscribers: cullmann, kwrite-devel, #kate

Tags: #kate

Differential Revision: https://phabricator.kde.org/D17564
parent 224c0b9e
......@@ -226,7 +226,7 @@ void CloseExceptPluginView::updateMenu()
const QList<KTextEditor::Document*>& docs = KTextEditor::Editor::instance()->application()->documents();
if (docs.size() < 2)
{
qDebug() << "No docs r (or the only) opened right now --> disable menu";
//qDebug() << "No docs r (or the only) opened right now --> disable menu";
m_except_menu->setEnabled(false);
m_except_menu->addSeparator();
m_like_menu->setEnabled(false);
......@@ -248,7 +248,7 @@ void CloseExceptPluginView::updateMenu()
doc_paths.insert(KIO::upUrl(document->url()));
}
paths_set_type paths = doc_paths;
qDebug() << "stage #1: Collected" << paths.size() << "paths and" << masks.size() << "masks";
//qDebug() << "stage #1: Collected" << paths.size() << "paths and" << masks.size() << "masks";
// Add common paths to the collection
for (paths_set_type::iterator it = doc_paths.begin(), last = doc_paths.end(); it != last; ++it)
{
......@@ -269,7 +269,7 @@ void CloseExceptPluginView::updateMenu()
}
}
}
qDebug() << "stage #2: Collected" << paths.size() << "paths and" << masks.size() << "masks";
//qDebug() << "stage #2: Collected" << paths.size() << "paths and" << masks.size() << "masks";
//
updateMenu(paths, masks, m_except_actions, m_except_menu, &CloseExceptPluginView::closeExcept);
updateMenu(paths, masks, m_like_actions, m_like_menu, &CloseExceptPluginView::closeLike);
......@@ -286,7 +286,7 @@ void CloseExceptPluginView::close(const QString& item, const bool close_if_match
const bool is_path = item[0] != asterisk;
const QString mask = is_path ? item.left(item.size() - 1) : item;
qDebug() << "Going to close items [" << close_if_match << "/" << is_path << "]: " << mask;
//qDebug() << "Going to close items [" << close_if_match << "/" << is_path << "]: " << mask;
QList<KTextEditor::Document*> docs2close;
const QList<KTextEditor::Document*>& docs = KTextEditor::Editor::instance()->application()->documents();
......@@ -300,7 +300,7 @@ void CloseExceptPluginView::close(const QString& item, const bool close_if_match
;
if (match == close_if_match)
{
qDebug() << "*** Will close: " << document->url();
//qDebug() << "*** Will close: " << document->url();
docs2close.push_back(document);
}
}
......
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