Mercurial > octave-nkf
diff gui/src/MainWindow.cpp @ 14690:ca733a66be7a gui
Fixed bug with not opening the editor when clicking a file from the file browser. Implemented watching the file on disk.
* MainWindow: Simplified opening file request calls.
* FileEditor: Added new slot that closes tabs without and index and made FileEditorTabs connect to it.
* FileEditorTab: Added QFileSystemWatcher and fixed bug with setting modified status on m_modified. Implemented message boxes for the cases that a file has been removed, renamed und modified from outside.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Fri, 25 May 2012 23:56:31 +0200 |
parents | 9ea75ea686b5 |
children | d6d250812c01 |
line wrap: on
line diff
--- a/gui/src/MainWindow.cpp Fri May 25 20:54:36 2012 +0200 +++ b/gui/src/MainWindow.cpp Fri May 25 23:56:31 2012 +0200 @@ -45,23 +45,13 @@ void MainWindow::newFile () { - if (!m_fileEditor->isVisible ()) - { - m_fileEditor->show (); - } m_fileEditor->requestNewFile (); - } void MainWindow::openFile () { - if (!m_fileEditor->isVisible ()) - { - m_fileEditor->show (); - } m_fileEditor->requestOpenFile (); - } void