[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate/terietor/konsolepreviewer] /: Remove the connection and move it to saveAndRefresh
From:       Giorgos Tsiapaliokas <terietor () gmail ! com>
Date:       2012-08-08 17:28:48
Message-ID: 20120808172848.14D45A60C9 () git ! kde ! org
[Download RAW message or body]

Git commit dfe398119f571de6123dfee9ea6414cb0d574bdd by Giorgos Tsiapaliokas.
Committed on 08/08/2012 at 19:25.
Pushed by tsiapaliwkas into branch 'terietor/konsolepreviewer'.

Remove the connection and move it to saveAndRefresh

M  +2    -2    mainwindow.cpp

http://commits.kde.org/plasmate/dfe398119f571de6123dfee9ea6414cb0d574bdd

diff --git a/mainwindow.cpp b/mainwindow.cpp
index a864f30..4792a74 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -420,6 +420,7 @@ void MainWindow::saveAndRefresh()
     saveEditorData();
     if (m_previewerWidget) {
         m_previewerWidget->refreshPreview();
+        reloadKonsolePreviewer();
     }
 }
 =

@@ -634,7 +635,7 @@ void MainWindow::showKonsolePreviewer()
 =

 void MainWindow::reloadKonsolePreviewer()
 {
-    if (m_konsole && m_previewerWidget) {
+    if (m_konsole) {
         m_konsole->setOutput(m_previewerWidget->takeOutput());
     }
 }
@@ -902,7 +903,6 @@ Previewer* MainWindow::createPreviewerFor(const QString=
& projectType)
     if (ret) {
         ret->setObjectName("preview");
         connect(ret, SIGNAL(refreshRequested()), this, SLOT(saveAndRefresh=
()));
-        connect(ret, SIGNAL(refreshRequested()), this, SLOT(reloadKonsoleP=
reviewer()));
         connect(ret, SIGNAL(visibilityChanged(bool)), this, SLOT(updateAct=
ions()));
     }
 =


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic