From 61c30be6365e413501d4d8dfbcfc20f2636dc2da Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 5 Jan 2025 12:21:34 +0100 Subject: [PATCH] gui: fix building with Visual Studio 2019 --- src/gui/MyFrameMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/MyFrameMain.cpp b/src/gui/MyFrameMain.cpp index 53f25195..73f7d41a 100644 --- a/src/gui/MyFrameMain.cpp +++ b/src/gui/MyFrameMain.cpp @@ -1711,7 +1711,7 @@ void MyFrameMain::bookmarks_add(wxCommandEvent &event) #if wxUSE_SECRETSTORE wxSecretStore store = wxSecretStore::GetDefault(); if(store.IsOk() && c->getPassword().IsOk()) { //check if destination and source are ok - if(!store.Save("MultiVNC/Bookmarks/" + (c->getUserName().IsEmpty() ? "" : c->getUserName() + "@") + c->getServerHost() + ":" + c->getServerPort(), c->getUserName(), c->getPassword())) //FIXME the service should use the user-given bookmark name, but that requires a rework of our internal bookmarking + if(!store.Save("MultiVNC/Bookmarks/" + wxString(c->getUserName().IsEmpty() ? "" : c->getUserName() + "@") + c->getServerHost() + ":" + c->getServerPort(), c->getUserName(), c->getPassword())) //FIXME the service should use the user-given bookmark name, but that requires a rework of our internal bookmarking wxLogWarning(_("Failed to save credentials to the system secret store.")); } #endif