Several OS/2 fixes from Silvan Scherrer

This commit is contained in:
Christophe Dumez
2010-06-22 19:17:47 +00:00
parent 8ee762695b
commit 778cfff4b3
9 changed files with 34 additions and 26 deletions

View File

@@ -213,7 +213,7 @@ void PropertiesWidget::updateSavePath(QTorrentHandle& _h) {
QString p = TorrentPersistentData::getSavePath(h.hash());
if(p.isEmpty())
p = h.save_path();
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
p = p.replace("/", "\\");
#endif
save_path->setText(p);
@@ -240,7 +240,7 @@ void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
QString p = TorrentPersistentData::getSavePath(h.hash());
if(p.isEmpty())
p = h.save_path();
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
p = p.replace("/", "\\");
#endif
save_path->setText(p);
@@ -763,7 +763,7 @@ void PropertiesWidget::renameSelectedFile() {
h.move_storage(savePath.absolutePath());
// Update save_path in dialog
QString display_path = savePath.absolutePath();
#ifdef Q_WS_WIN
#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
display_path = display_path.replace("/", "\\");
#endif
save_path->setText(display_path);