Ignore:
Timestamp:
Apr 12, 2013, 6:30:08 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/inpedit/keyword.cpp

    r5113 r5114  
    128128  }
    129129  else if (widgetType == "selwin") {
    130     t_selWin* selWin = new t_selWin();
    131     if (_origValues.size()) {
    132       selWin->setFileName(_origValues[0]);
    133     }
     130    t_selWin::Mode mode = t_selWin::File;
     131    if      (_desc.value("seldir") == "true") {
     132      mode = t_selWin::Directory;
     133    }
     134    else if (_desc.value("maxfiles").toInt() > 1) {
     135      mode = t_selWin::Files;
     136    }
     137    t_selWin* selWin = new t_selWin(mode);
     138    selWin->setFileNames(_origValues);
    134139    _widget = selWin;
    135140  }
     
    194199  else if (widgetType == "selwin") {
    195200    t_selWin* selWin = static_cast<t_selWin*>(_widget);
     201    values << selWin->fileNames();
    196202  }
    197203  else if (widgetType == "spinbox") {
Note: See TracChangeset for help on using the changeset viewer.