Commit Graph

8 Commits

Author SHA1 Message Date
Eike Ziller
028c0b1cdd Plugin install: Fix crash on cancel
When the process is aborted, both errorOccurred and then finished is
sent. Because of the combination of deleteLater and QueuedConnection
this leads to m_process being already nullptr when finished is sent, so
add some guards.

Change-Id: I446114176f8fa5934b411b39d77c97d6267303fa
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-23 13:48:02 +00:00
David Schulz
5bd0894813 Utils: Fix compile on unix
amends 72b35aa12b

Change-Id: I934ef8420b998db367f004d2f58782abdc843af9
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2020-06-16 08:36:27 +00:00
David Schulz
72b35aa12b Utils: check windows registry for archive tools
Change-Id: I2acff0347a0bd04a808b5f4a0049263168e11f51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-16 07:40:43 +00:00
Tobias Hunger
630f43c02d Fix build: Utils/archive.cpp needs to include QTimer
Change-Id: I99f15e6bf2f0879b7cd0f6d859174c95299e4f93
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2020-06-15 09:00:26 +00:00
Eike Ziller
18ee72ac3f Utils/Archive: Add simple async API
So we can integrate it deeper into the plugin wizard.

Change-Id: I7f7a9eb8e07d3eeab6a4ecf92161f7d04f5fa5c2
Reviewed-by: David Schulz <david.schulz@qt.io>
2020-06-15 07:45:10 +00:00
Christian Stenger
304a417de0 Utils: Fix compile with gcc 5.3
Amends 26c26c0dad.

Change-Id: I019759179626df45a31492846e05b1dca55f4fea
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-06-02 11:45:31 +00:00
Eike Ziller
26c26c0dad Support more file formats for unarchiving plugins
Use tar, or cmake -E tar, for .tar, .tar.gz, tar.xz, tar.bz2.
Use 7zip for 7zip.
Zip is supported by unzip, 7zip, tar, and cmake.

Change-Id: I799c3211325398add150644b57c32b7ad5bb8903
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 13:17:02 +00:00
Eike Ziller
cc8148606a Move unarchiving code out of the plugin dialog code
Change-Id: I2b6510ae527d57a06692336cfd7b0434cdcbda51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
2020-05-29 12:39:49 +00:00