Commit 69737a22 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

CLean up

parent 00477305
...@@ -2122,10 +2122,6 @@ void ViewerPrivate::slotToggleHtmlMode() ...@@ -2122,10 +2122,6 @@ void ViewerPrivate::slotToggleHtmlMode()
{ {
const auto availableModes = mColorBar->availableModes(); const auto availableModes = mColorBar->availableModes();
const int availableModeSize(availableModes.size()); const int availableModeSize(availableModes.size());
// for (int i = 0; i < availableModeSize; ++i) {
// qDebug() << " Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
// }
// qDebug() << " availableModeSize"<<availableModeSize;
if (mColorBar->isNormal() || availableModeSize < 2) { if (mColorBar->isNormal() || availableModeSize < 2) {
return; return;
} }
...@@ -2134,11 +2130,6 @@ void ViewerPrivate::slotToggleHtmlMode() ...@@ -2134,11 +2130,6 @@ void ViewerPrivate::slotToggleHtmlMode()
const int pos = (availableModes.indexOf(mode) + 1) % availableModeSize; const int pos = (availableModes.indexOf(mode) + 1) % availableModeSize;
setDisplayFormatMessageOverwrite(translateToDisplayFormat(availableModes[pos])); setDisplayFormatMessageOverwrite(translateToDisplayFormat(availableModes[pos]));
update(MimeTreeParser::Force); update(MimeTreeParser::Force);
// for (int i = 0; i < availableModeSize; ++i) {
// qDebug() << "AFTER Mode " << MimeTreeParser::Util::htmlModeToString(availableModes.at(i));
// }
// qDebug() << " Assign modes " << availableModes;
mColorBar->setAvailableModes(availableModes); mColorBar->setAvailableModes(availableModes);
} }
......
Supports Markdown
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