1.13.4
This commit is contained in:
parent
b91daec2a1
commit
7203acdf1e
|
@ -95,7 +95,7 @@ _FX BOOLEAN Gui_InitTitle(HMODULE module)
|
||||||
// hook functions
|
// hook functions
|
||||||
//
|
//
|
||||||
|
|
||||||
if (! Gui_DisableTitle||SbieApi_QueryConfBool(NULL,"NoTitle",FALSE)) {
|
if (! Gui_DisableTitle) {
|
||||||
|
|
||||||
SBIEDLL_HOOK_GUI(GetWindowTextW);
|
SBIEDLL_HOOK_GUI(GetWindowTextW);
|
||||||
SBIEDLL_HOOK_GUI(GetWindowTextA);
|
SBIEDLL_HOOK_GUI(GetWindowTextA);
|
||||||
|
@ -291,6 +291,7 @@ _FX int Gui_FixTitleW(HWND hWnd, WCHAR *lpWindowTitle, int len)
|
||||||
{
|
{
|
||||||
if (len >= (int)Gui_TitleSuffixW_len * 2 &&
|
if (len >= (int)Gui_TitleSuffixW_len * 2 &&
|
||||||
Gui_ShouldCreateTitle(hWnd)) {
|
Gui_ShouldCreateTitle(hWnd)) {
|
||||||
|
|
||||||
if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) {
|
if (wmemcmp(lpWindowTitle, &Gui_TitleSuffixW[1], 3) == 0) {
|
||||||
len -= 4;
|
len -= 4;
|
||||||
wmemmove(lpWindowTitle, lpWindowTitle + 4, len);
|
wmemmove(lpWindowTitle, lpWindowTitle + 4, len);
|
||||||
|
@ -325,6 +326,7 @@ _FX int Gui_FixTitleA(HWND hWnd, UCHAR *lpWindowTitle, int len)
|
||||||
{
|
{
|
||||||
if (len >= (int)Gui_TitleSuffixA_len * 2 &&
|
if (len >= (int)Gui_TitleSuffixA_len * 2 &&
|
||||||
Gui_ShouldCreateTitle(hWnd)) {
|
Gui_ShouldCreateTitle(hWnd)) {
|
||||||
|
|
||||||
if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) {
|
if (memcmp(lpWindowTitle, &Gui_TitleSuffixA[1], 3) == 0) {
|
||||||
len -= 4;
|
len -= 4;
|
||||||
memmove(lpWindowTitle, lpWindowTitle + 4, len);
|
memmove(lpWindowTitle, lpWindowTitle + 4, len);
|
||||||
|
|
|
@ -98,16 +98,17 @@ CBoxImageWindow::CBoxImageWindow(EAction Action, QWidget *parent)
|
||||||
ui.chkAutoLock->setVisible(false);
|
ui.chkAutoLock->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//restoreGeometry(theConf->GetBlob("BoxImageWindow/Window_Geometry"));
|
//restoreGeometry(theConf->GetBlob("BoxImageWindow/Window_Geometry"));
|
||||||
}
|
}
|
||||||
void CBoxImageWindow::SetForce(bool force) {
|
|
||||||
|
void CBoxImageWindow::SetForce(bool force)
|
||||||
|
{
|
||||||
ui.chkProtect->setEnabled(!force);
|
ui.chkProtect->setEnabled(!force);
|
||||||
ui.chkProtect->setChecked(true);
|
ui.chkProtect->setChecked(true);
|
||||||
ui.chkAutoLock->setChecked(true);
|
ui.chkAutoLock->setChecked(true);
|
||||||
ui.chkAutoLock->setEnabled(!force);
|
ui.chkAutoLock->setEnabled(!force);
|
||||||
}
|
}
|
||||||
|
|
||||||
CBoxImageWindow::~CBoxImageWindow()
|
CBoxImageWindow::~CBoxImageWindow()
|
||||||
{
|
{
|
||||||
//theConf->SetBlob("BoxImageWindow/Window_Geometry", saveGeometry());
|
//theConf->SetBlob("BoxImageWindow/Window_Geometry", saveGeometry());
|
||||||
|
|
|
@ -273,6 +273,7 @@ void COptionsWindow::LoadAdvanced()
|
||||||
ui.chkLockWhenClose->setCheckable(m_pBox->GetBool("UseFileImage", false));
|
ui.chkLockWhenClose->setCheckable(m_pBox->GetBool("UseFileImage", false));
|
||||||
ui.chkLockWhenClose->setEnabled(m_pBox->GetBool("UseFileImage", false));
|
ui.chkLockWhenClose->setEnabled(m_pBox->GetBool("UseFileImage", false));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QStringList Users = m_pBox->GetText("Enabled").split(",");
|
QStringList Users = m_pBox->GetText("Enabled").split(",");
|
||||||
ui.lstUsers->clear();
|
ui.lstUsers->clear();
|
||||||
if (Users.count() > 1)
|
if (Users.count() > 1)
|
||||||
|
|
Loading…
Reference in New Issue