Changeset 1548 for trunk/dll/notebook.c


Ignore:
Timestamp:
Oct 24, 2010, 9:50:55 PM (15 years ago)
Author:
Gregg Young
Message:

Fixed spurious error message when changing labels in the drive tree with a "not ready" drive selected (Ticket 437).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r1546 r1548  
    5858  13 Dec 09 GKY Updated Quick page "Default" to match current defaults; added Gregg's way
    5959                option to Quick page.
    60   17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
     60  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR
     61                CONSTANT * as CHAR *.
     62  24 OCT 10 GKY Fixed spurious error message when labels in tree are changed with a
     63                "not ready" drive selected
    6164
    6265***********************************************************************/
     
    14841487                                    MPFROMLONG(CMA_FIRST),
    14851488                                    MPFROMSHORT(CRA_SELECTED));
    1486           WinSendMsg(WinWindowFromID(WinWindowFromID(hwndTree, FID_CLIENT),
    1487                                      TREE_CNR), WM_COMMAND,
    1488                      MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    1489           pszTemp = xstrdup(pci->pszFileName, pszSrcFile, __LINE__);
    1490           if (pszTemp) {
    1491             if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTemp), MPVOID))
    1492               free(pszTemp);
    1493             // pszTemp is freed in the UM_SHOWME code
     1489          WinSendMsg(hwndTree, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
     1490          if (strlen(pci->pszFileName) > 3 &&  fSwitchTreeExpand) {
     1491            pszTemp = xstrdup(pci->pszFileName, pszSrcFile, __LINE__);
     1492            if (pszTemp) {
     1493              if (!PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTemp), MPVOID))
     1494                free(pszTemp);
     1495              //pszTemp is freed in the UM_SHOWME code
     1496            }
    14941497          }
    14951498        }
Note: See TracChangeset for help on using the changeset viewer.