mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 16:22:36 -08:00
🏁 Fix winsock and autotype error when compiling on Windows
This commit is contained in:
4 files changed
+14
-5
No files matched your search
@@ -13,5 +13,8 @@ if(UNIX AND NOT APPLE)
|
||||
endif()
|
||||
|
||||
if(WITH_TESTS)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
# autotype non supported on Windows right now
|
||||
if(UNIX)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
endif()
|
||||
@@ -717,8 +717,8 @@ void MainWindow::repairDatabase()
|
||||
KeePass2Writer writer;
|
||||
writer.writeDatabase(saveFileName, dbRepairWidget->database());
|
||||
if (writer.hasError()) {
|
||||
MessageBox::critical(this, tr("Error"), tr("Writing the database failed.") + "\n\n"
|
||||
+ writer.errorString());
|
||||
QMessageBox::critical(this, tr("Error"),
|
||||
tr("Writing the database failed.").append("\n\n").append(writer.errorString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,12 @@
|
||||
#include <QEventLoop>
|
||||
#include <QtNetwork/QHostInfo>
|
||||
#include <QtNetwork/QHostAddress>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
using namespace KeepassHttpProtocol;
|
||||
|
||||
|
||||
Reference in new issue
Block a user