Fixes: cpaster plugin options

RevBy:    andre
Details:  - the settings have not been taken into respect so far.
This commit is contained in:
lowinu
2009-02-13 13:53:11 +01:00
parent 581dae100a
commit ae7864f9c0
2 changed files with 5 additions and 3 deletions

View File

@@ -185,7 +185,9 @@ void CodepasterPlugin::post()
// Submit to codepaster
m_poster = new CustomPoster(serverUrl());
m_poster = new CustomPoster(serverUrl(),
m_settingsPage->copyToClipBoard(),
m_settingsPage->displayOutput());
// Copied from cpaster. Otherwise lineendings will screw up
if (!data.contains("\r\n")) {

View File

@@ -65,8 +65,8 @@ public:
QString username() const;
QUrl serverUrl() const;
bool copyToClipBoard() const;
bool displayOutput() const;
inline bool copyToClipBoard() const { return m_copy; }
inline bool displayOutput() const { return m_output; }
private:
Ui_SettingsPage m_ui;