1.13.4
This commit is contained in:
parent
2cb4a9cab5
commit
8b7df9bdc0
|
@ -1716,6 +1716,7 @@ SB_STATUS CSandMan::ImBoxMount(const CSandBoxPtr& pBox, bool bAutoUnmount)
|
||||||
}
|
}
|
||||||
|
|
||||||
CBoxImageWindow window(CBoxImageWindow::eMount, this);
|
CBoxImageWindow window(CBoxImageWindow::eMount, this);
|
||||||
|
window.SetAutoUnMount(bAutoUnmount);
|
||||||
if (theGUI->SafeExec(&window) != 1)
|
if (theGUI->SafeExec(&window) != 1)
|
||||||
return SB_ERR(SB_Canceled);
|
return SB_ERR(SB_Canceled);
|
||||||
return pBox->ImBoxMount(window.GetPassword(), window.UseProtection(), window.AutoUnMount());
|
return pBox->ImBoxMount(window.GetPassword(), window.UseProtection(), window.AutoUnMount());
|
||||||
|
|
|
@ -25,6 +25,7 @@ public:
|
||||||
void SetImageSize(quint64 uSize) const { return ui.txtImageSize->setText(QString::number(uSize / 1024)); }
|
void SetImageSize(quint64 uSize) const { return ui.txtImageSize->setText(QString::number(uSize / 1024)); }
|
||||||
quint64 GetImageSize() const { return ui.txtImageSize->text().toULongLong() * 1024; }
|
quint64 GetImageSize() const { return ui.txtImageSize->text().toULongLong() * 1024; }
|
||||||
bool UseProtection() const { return ui.chkProtect->isChecked(); }
|
bool UseProtection() const { return ui.chkProtect->isChecked(); }
|
||||||
|
void SetAutoUnMount(bool bSet) { ui.chkAutoLock->setChecked(bSet); }
|
||||||
bool AutoUnMount() const { return ui.chkAutoLock->isChecked(); }
|
bool AutoUnMount() const { return ui.chkAutoLock->isChecked(); }
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
Loading…
Reference in New Issue