From 9bf1a11cb5a4d0a72416e51fec0142472fb69370 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Sat, 20 Mar 2021 12:30:49 +0100 Subject: [PATCH] Make printer attributes "let go" of files --- src/ippprinter.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)) {