| 125 | } |
| 126 | |
| 127 | void frmOptions::select7zPath() { |
| 128 | QString path7z = QFileDialog::getOpenFileName( |
| 129 | this, tr("Specify the path for 7z executable"), |
| 130 | QFileInfo(ui.le7zPath->text()).path()); |
| 131 | if (!path7z.isEmpty()) { |
| 132 | if (!QFileInfo(path7z).isExecutable()) |
| 133 | QMessageBox::warning( |
| 134 | this, tr("Invalid path"), |
| 135 | tr("Defined path to 7z executable is invalid. If you can not " |
| 136 | "locate 7z executable, try installing p7zip-full package.")); |
| 137 | else |
| 138 | ui.le7zPath->setText(path7z); |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | void frmOptions::leTmpPathChanged() { |
| 143 | QFileInfo f(ui.leTmpPath->text()); |
nothing calls this directly
no outgoing calls
no test coverage detected