Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2006, 9:14:47 AM (18 years ago)
Author:
bensch
Message:

DataDirectory-selection works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/qt_gui/src/lib/gui/qt_gui/gui_general.cc

    r7601 r7603  
    4747      QLabel* dataDirLabel = new QLabel("DataDirectory");
    4848      layout->addWidget(dataDirLabel, 0,0);
    49       QtGuiInputLine* dataDir = new QtGuiInputLine(CONFIG_NAME_DATADIR, this);
     49      this->dataDir = new QtGuiInputLine(CONFIG_NAME_DATADIR, this);
    5050      layout->addWidget(dataDir, 0, 1, 1, 2);
    5151      QPushButton* dataFileDialogButton = new QPushButton("browse");
    5252      layout->addWidget(dataFileDialogButton, 0, 3, 1, 1);
    5353      connect(dataFileDialogButton, SIGNAL(released()), this, SLOT(openDataFileDialog()));
    54 
    5554
    5655
     
    8382    "Choose the ORXONOX DATA DIRECTORY",
    8483    ".",
    85     "ORXONOX DATA INDEX (data.oxd)");
     84    "ORXONOX DATA INDEX (" DEFAULT_DATA_DIR_CHECKFILE ")" );
     85
     86    s.remove("data.oxd");
     87    if (!s.isNull())
     88      this->dataDir->setText(s);
    8689  }
    8790
Note: See TracChangeset for help on using the changeset viewer.