Mercurial > hg > octave-lojdl
changeset 14287:2f902bf44669 gui
Sending commands to the terminal from doubleclicking the history, loading and saving workspaces as well as clearing the workspace works again.
* MainWindow.cpp: Commented in the appropriate sendText method calls.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 31 Jan 2012 00:03:44 +0100 |
parents | 728c8929385f |
children | e7d9e6d8c6b5 |
files | gui/src/MainWindow.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp +++ b/gui/src/MainWindow.cpp @@ -125,7 +125,7 @@ QString selectedFile = QFileDialog::getSaveFileName (this, tr ("Save Workspace"), ResourceManager::instance ()->homePath ()); - //m_terminalView->sendText (QString ("save \'%1\'\n").arg (selectedFile)); + m_terminalView->sendText (QString ("save \'%1\'\n").arg (selectedFile)); m_terminalView->setFocus (); } @@ -135,21 +135,21 @@ QString selectedFile = QFileDialog::getOpenFileName (this, tr ("Load Workspace"), ResourceManager::instance ()->homePath ()); - //m_terminalView->sendText (QString ("load \'%1\'\n").arg (selectedFile)); + m_terminalView->sendText (QString ("load \'%1\'\n").arg (selectedFile)); m_terminalView->setFocus (); } void MainWindow::handleClearWorkspaceRequest () { - //m_terminalView->sendText ("clear\n"); + m_terminalView->sendText ("clear\n"); m_terminalView->setFocus (); } void MainWindow::handleCommandDoubleClicked (QString command) { - //m_terminalView->sendText (command); + m_terminalView->sendText(command); m_terminalView->setFocus (); }