mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Merge Win32 fixes from stable branch
This commit is contained in:
@@ -80,14 +80,22 @@ createtorrent::~createtorrent() {
|
||||
|
||||
void createtorrent::on_addFolder_button_clicked(){
|
||||
QString dir = QFileDialog::getExistingDirectory(this, tr("Select a folder to add to the torrent"), QDir::homePath(), QFileDialog::ShowDirsOnly);
|
||||
if(!dir.isEmpty())
|
||||
if(!dir.isEmpty()) {
|
||||
#ifdef Q_WS_WIN
|
||||
dir = dir.replace("/", "\\");
|
||||
#endif
|
||||
textInputPath->setText(dir);
|
||||
}
|
||||
}
|
||||
|
||||
void createtorrent::on_addFile_button_clicked(){
|
||||
QString file = QFileDialog::getOpenFileName(this, tr("Select a file to add to the torrent"), QDir::homePath());
|
||||
if(!file.isEmpty())
|
||||
if(!file.isEmpty()) {
|
||||
#ifdef Q_WS_WIN
|
||||
file = file.replace("/", "\\");
|
||||
#endif
|
||||
textInputPath->setText(file);
|
||||
}
|
||||
}
|
||||
|
||||
void createtorrent::on_removeTracker_button_clicked() {
|
||||
|
||||
Reference in New Issue
Block a user