diff --git a/src/ippprinter.cpp b/src/ippprinter.cpp index 23619b7..4740a8a 100644 --- a/src/ippprinter.cpp +++ b/src/ippprinter.cpp @@ -103,6 +103,8 @@ void IppPrinter::refresh() { if(_url.scheme() == "file") { + _attrs = QJsonObject(); + QFile file(_url.toLocalFile()); if(file.open(QIODevice::ReadOnly)) {