Mercurial > hg > octave-lyh
diff gui/src/OctaveLink.cpp @ 13517:86adc9c4ec4b
History deactivated.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Tue, 19 Jul 2011 15:18:47 +0200 |
parents | c70511cf64ee |
children | bace956a3724 |
line wrap: on
line diff
--- a/gui/src/OctaveLink.cpp +++ b/gui/src/OctaveLink.cpp @@ -128,7 +128,9 @@ m_historySemaphore->acquire (); for (int i = m_previousHistoryLength; i < currentLen; i++) { - m_historyBuffer.append (command_history::get_entry (i)); + QString entry = QString(command_history::get_entry (i).c_str()); + if (!entry.startsWith ("#")) + m_historyBuffer.append (entry); } m_historySemaphore->release (); m_previousHistoryLength = currentLen; @@ -149,14 +151,13 @@ return m_symbolTableCopy; } -string_vector +QStringList OctaveLink::currentHistory () { m_historySemaphore->acquire (); - string_vector retval (m_historyBuffer); - m_historyBuffer = string_vector (); + QStringList historyBuffer = m_historyBuffer; m_historySemaphore->release (); - return retval; + return historyBuffer; } void