Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Pipe/FileQtQueryPipe.cpp

    r8de597 rf10b0c  
    3131#include "UIElements/Qt4/QtDialog.hpp"
    3232
    33 FileQtQueryPipe::FileQtQueryPipe(boost::filesystem::path *_content, QtDialog *_dialog, QLineEdit *_filenameLineEdit, QPushButton *_filedialogButton) :
     33FileQtQueryPipe::FileQtQueryPipe(Parameter<boost::filesystem::path> &_content, QtDialog *_dialog, QLineEdit *_filenameLineEdit, QPushButton *_filedialogButton) :
    3434  content(_content),
    3535  dialog(_dialog),
     
    4949  QStringList ListOfFilenames = theFileDialog->selectedFiles();
    5050  std::cout << "Selected File is " << ListOfFilenames.at(0).toStdString() << std::endl;
    51   (*content) = ListOfFilenames.at(0).toStdString();
    52   filenameLineEdit->setText(QString::fromStdString((*content).string()));
     51  content.set(ListOfFilenames.at(0).toStdString());
     52  filenameLineEdit->setText(QString::fromStdString(content.get().string()));
    5353  dialog->update();
    5454}
Note: See TracChangeset for help on using the changeset viewer.