Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
x05andfe committed May 4, 2006
1 parent 9c7355a commit 546a6c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions OMNotebook/OMNotebookQT4/highlighterthread.cpp
Expand Up @@ -154,21 +154,21 @@ namespace IAEX
if( !stack_.isEmpty() )
{
QTextEdit *editor = stack_.pop();
if( editor->isVisible() )
{
//if( editor->isVisible() )
//{
highlighter_->highlight( editor->document() );

// force text to be updated
//editor->update();
//QCoreApplication::processEvents();
//QTextCursor cursor = editor->textCursor();
//editor->setTextCursor( cursor );
}
else
{
//}
//else
//{
// add last
stack_.push_back( editor );
}
//stack_.push_back( editor );
//}
}

// 2006-01-05 AF, check if any editor should be removed
Expand Down
5 changes: 3 additions & 2 deletions OMNotebook/OMNotebookQT4/notebook.cpp
Expand Up @@ -2392,6 +2392,7 @@ namespace IAEX
{
// if a filename exists, use that filename as default
QString filename;
/* don't work correctly.
if( !subject_->getFilename().isEmpty() )
{
// open save as dialog
Expand All @@ -2402,14 +2403,14 @@ namespace IAEX
"OpenModelica Notebooks (*.onb)");
}
else
{
{*/
// open save as dialog
filename = QFileDialog::getSaveFileName(
this,
"Choose a filename to save under",
saveDir_,
"OpenModelica Notebooks (*.onb)");
}
//}

if(!filename.isEmpty())
{
Expand Down

0 comments on commit 546a6c4

Please sign in to comment.