Fix for #1961: Warnings and errors only shown five times
This commit is contained in:
parent
56d73a422a
commit
f10bae8aee
3 changed files with 4 additions and 3 deletions
|
|
@ -1748,7 +1748,7 @@ bool MainWindow::fileChangedOnDisk()
|
|||
*/
|
||||
void MainWindow::compileTopLevelDocument()
|
||||
{
|
||||
resetPrintedDeprecations();
|
||||
resetSuppressedMessages();
|
||||
|
||||
this->last_compiled_doc = editor->toPlainText();
|
||||
|
||||
|
|
|
|||
|
|
@ -119,7 +119,8 @@ void printDeprecation(const std::string &str)
|
|||
}
|
||||
}
|
||||
|
||||
void resetPrintedDeprecations()
|
||||
void resetSuppressedMessages()
|
||||
{
|
||||
printedDeprecations.clear();
|
||||
lastmessages.clear();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue