mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 19:38:26 -06:00
wxWidgets 3.0 compatibility modifications
This commit is contained in:
@@ -828,7 +828,7 @@ namespace TrueCrypt
|
||||
// File-hosted volumes
|
||||
if (!volume->Path.IsDevice() && !mountPoint.IsEmpty())
|
||||
{
|
||||
if (wxString (volume->Path).Upper().StartsWith (wstring (mountPoint).c_str()))
|
||||
if (wxString (wstring(volume->Path)).Upper().StartsWith (wstring (mountPoint).c_str()))
|
||||
{
|
||||
removedVolumes.push_back (volume);
|
||||
continue;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace TrueCrypt
|
||||
{
|
||||
if (!DirectoryTextCtrl->IsEmpty())
|
||||
{
|
||||
return FilesystemPath (DirectoryTextCtrl->GetValue()).IsDirectory();
|
||||
return FilesystemPath (DirectoryTextCtrl->GetValue().wc_str()).IsDirectory();
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace TrueCrypt
|
||||
public:
|
||||
SelectDirectoryWizardPage (wxPanel* parent) : SelectDirectoryWizardPageBase (parent) { }
|
||||
|
||||
DirectoryPath GetDirectory () const { return DirectoryPath (DirectoryTextCtrl->GetValue()); }
|
||||
DirectoryPath GetDirectory () const { return DirectoryPath (DirectoryTextCtrl->GetValue().wc_str()); }
|
||||
bool IsValid ();
|
||||
void SetDirectory (const DirectoryPath &path) { DirectoryTextCtrl->SetValue (wstring (path)); }
|
||||
void SetMaxStaticTextWidth (int width) { InfoStaticText->Wrap (width); }
|
||||
|
||||
Reference in New Issue
Block a user