Commit a1d8dcd5 authored by Gustavo Carneiro's avatar Gustavo Carneiro
Browse files

Check is valid pointer

parent 3369c502
...@@ -40,6 +40,10 @@ using namespace Konsole; ...@@ -40,6 +40,10 @@ using namespace Konsole;
void KonsolePrintManager::printRequest(pPrintContent pContent, QWidget *parent) void KonsolePrintManager::printRequest(pPrintContent pContent, QWidget *parent)
{ {
if (!pContent) {
return;
}
QPrinter printer; QPrinter printer;
QPointer<QPrintDialog> dialog = new QPrintDialog(&printer, parent); QPointer<QPrintDialog> dialog = new QPrintDialog(&printer, parent);
......
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