Fix for #1961: Warnings and errors only shown five times

This commit is contained in:
Chris Palmer 2017-02-24 14:34:51 +00:00
parent 56d73a422a
commit f10bae8aee
3 changed files with 4 additions and 3 deletions

View file

@ -1748,7 +1748,7 @@ bool MainWindow::fileChangedOnDisk()
*/
void MainWindow::compileTopLevelDocument()
{
resetPrintedDeprecations();
resetSuppressedMessages();
this->last_compiled_doc = editor->toPlainText();

View file

@ -119,7 +119,8 @@ void printDeprecation(const std::string &str)
}
}
void resetPrintedDeprecations()
void resetSuppressedMessages()
{
printedDeprecations.clear();
lastmessages.clear();
}

View file

@ -23,7 +23,7 @@ extern std::list<std::string> print_messages_stack;
void print_messages_push();
void print_messages_pop();
void printDeprecation(const std::string &str);
void resetPrintedDeprecations();
void resetSuppressedMessages();
#define PRINT_DEPRECATION(_fmt, _arg) do { printDeprecation(str(boost::format(_fmt) % _arg)); } while (0)