Ignore:
File:
1 edited

Legend:

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

    rf10b0c r8de597  
    3131#include "UIElements/Qt4/QtDialog.hpp"
    3232
    33 FileQtQueryPipe::FileQtQueryPipe(Parameter<boost::filesystem::path> &_content, QtDialog *_dialog, QLineEdit *_filenameLineEdit, QPushButton *_filedialogButton) :
     33FileQtQueryPipe::FileQtQueryPipe(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.set(ListOfFilenames.at(0).toStdString());
    52   filenameLineEdit->setText(QString::fromStdString(content.get().string()));
     51  (*content) = ListOfFilenames.at(0).toStdString();
     52  filenameLineEdit->setText(QString::fromStdString((*content).string()));
    5353  dialog->update();
    5454}
Note: See TracChangeset for help on using the changeset viewer.