summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <annejan@noprotocol.com>2015-04-29 11:55:44 +0200
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-04-29 11:55:44 +0200
commit24f8dec3c203921f765e923e6ae6a4069b8cf50a (patch)
tree511d78bcd7b236c94ff55f097f564f6dc1666c11
parent09283986772d929df030d1db209858440e77b657 (diff)
WebDAV breaks MinGW build
-rw-r--r--mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 936e44e0..1c937ca3 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -35,7 +35,9 @@ MainWindow::MainWindow(QWidget *parent) :
MainWindow::~MainWindow()
{
#ifdef Q_OS_WIN
+#ifndef __MINGW32__
if (useWebDav) WNetCancelConnection2A(passStore.toUtf8().constData(), 0, 1);
+#endif
#else
if (fusedav.state() == QProcess::Running) {
fusedav.terminate();
@@ -64,6 +66,7 @@ QSettings &MainWindow::getSettings() {
void MainWindow::mountWebDav() {
#ifdef Q_OS_WIN
+#ifndef __MINGW32__
char dst[20] = {0};
NETRESOURCEA netres;
memset(&netres, 0, sizeof(netres));
@@ -82,6 +85,7 @@ void MainWindow::mountWebDav() {
ui->textBrowser->setTextColor(Qt::red);
ui->textBrowser->setText(tr("Failed to connect WebDAV:\n") + message + " (0x" + QString::number(r, 16) + ")");
}
+#endif
#else
fusedav.start("fusedav -o nonempty -u \"" + webDavUser + "\" " + webDavUrl + " \"" + passStore + '"');
fusedav.waitForStarted();