Ticket #4231: 0001-Fix-4231.patch

File 0001-Fix-4231.patch, 1.1 KB (added by Janus, 9 years ago)

if I understand the problem, this is a possible solution

  • src/preferences/screen/ScreenWindow.cpp

    From e6376c57124a35890fdc82e5116415068c54b24f Mon Sep 17 00:00:00 2001
    From: Janus <janus2@ymail.com>
    Date: Sun, 18 Jan 2015 14:57:03 +0000
    Subject: [PATCH] Fix #4231
    
    ---
     src/preferences/screen/ScreenWindow.cpp | 19 +++++++++++++++++--
     1 file changed, 17 insertions(+), 2 deletions(-)
    
    diff --git a/src/preferences/screen/ScreenWindow.cpp b/src/preferences/screen/ScreenWindow.cpp
    index 511ed9a..f946191 100644
    a b ScreenWindow::_BuildSupportedColorSpaces()  
    12151215void
    12161216ScreenWindow::_CheckApplyEnabled()
    12171217{
    1218     fApplyButton->SetEnabled(fSelected != fActive
    1219         || fAllWorkspacesItem->IsMarked());
     1218    bool applyEnabled = true;
     1219   
     1220    if (fSelected == fActive) {
     1221        applyEnabled = false;
     1222        if (fAllWorkspacesItem->IsMarked()) {
     1223            screen_mode screenMode;
     1224            for (int32 i = 0; i < count_workspaces(); i++) {
     1225                fScreenMode.Get(screenMode, i);
     1226                if (screenMode != fSelected) {
     1227                    applyEnabled = true;
     1228                    break;
     1229                }
     1230            }
     1231        }
     1232    }
     1233   
     1234    fApplyButton->SetEnabled(applyEnabled);
    12201235
    12211236    uint32 columns;
    12221237    uint32 rows;