WiFi: saves a file for each text change.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QR Tools |
Fix Released
|
Undecided
|
Ramiro Algozino |
Bug Description
Facing the same issue with the latest trunk (currently revision 29), which was originally reported at <https:/
Steps to Reproduce:
1a. Ubuntu 17.10 with the package qr-tools installed
1b. Download the latest QtQR and qr-tools from
<https:/
2. Open a Terminal
3. $ cd ~/Downloads
4. $ ./qtqr
5. Select data type: WiFi Network
6. Enter a SSID
Expected Result:
Although QtQR creates a temporary representation, it should not be visible as file.
Actual Result:
QtQR writes a file from where QtQR was launched, for each text change. When I type EXAMPLE, I end up with seven PNG files (E.png, EX.png, ..., EXAMPLE.png) in the current working directory.
Notes:
The traceback is
self.wifi.
-> self.qrencode (qtqr)
--> qr.encode (qrtools)
---> filename or get_tmp_file
The filename is set (as Unicode) and therefore not a temporary but an actual file is created. The same happens for every QLineEdit. Consequently, this happens on the SMS type when I enter a telephone number as well. It does not happen with QPlainTextEdit because of a different textChanged behavior. Not sure how to tackle this or when this issue was introduced (with the change from Qt4 to Qt5 or even older).
Related branches
Changed in qr-tools: | |
status: | Confirmed → Fix Committed |
Changed in qr-tools: | |
status: | Fix Committed → Fix Released |
So, when connecting the signal and triggering it, the signal passes along paremters for QLineEdits with the QLineEdit content; the qrencode method receives this parameter as "fileName" and then generates one file for each time the QLine is triggered (the same applies to other cases).
We'll fix this tomorrow.
Thanks!