[pktools] 225/375: clear input and output console at begin of run in pkextract.cc

Bas Couwenberg sebastic at xs4all.nl
Wed Dec 3 21:54:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

sebastic-guest pushed a commit to branch upstream-master
in repository pktools.

commit b08921908c755feb1883fa7719085bc489a274b6
Author: Pieter Kempeneers <kempenep at gmail.com>
Date:   Tue Apr 1 19:06:45 2014 +0200

    clear input and output console at begin of run in pkextract.cc
---
 qt/pkextract_gui/mainwindow.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/qt/pkextract_gui/mainwindow.cpp b/qt/pkextract_gui/mainwindow.cpp
index 324203e..f392c45 100644
--- a/qt/pkextract_gui/mainwindow.cpp
+++ b/qt/pkextract_gui/mainwindow.cpp
@@ -98,6 +98,9 @@ void MainWindow::setClassTable(const QStringList &labels)
 void MainWindow::on_pushButton_run_clicked()
 {
     try{
+        ui->input->clear();
+        ui->consoleEdit->clear();
+
         QString program = "pkextract";
         if(m_sample.isEmpty())
             MainWindow::on_actionSample_triggered();
@@ -147,7 +150,6 @@ void MainWindow::on_pushButton_run_clicked()
         myProcess->start(program);
         myProcess->waitForFinished(-1);
         QString p_stdout = myProcess->readAll();
-        ui->consoleEdit->clear();
         ui->consoleEdit->insertPlainText(p_stdout);
         delete myProcess;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git



More information about the Pkg-grass-devel mailing list