summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp19
1 files changed, 15 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index b403b4d..b160604 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -9,6 +9,7 @@
#include "function_keyboard.h"
#include "emulation_handler.h"
#include "script.h"
+#include "fixit.h"
/* OPIE */
#include <opie2/odebug.h>
@@ -29,6 +30,12 @@ using namespace Opie::Ui;
#include <assert.h>
MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) {
+#ifdef FSCKED_DISTRI
+ FixIt fix;
+ fix.fixIt();
+#endif
+
+ setCaption(QObject::tr("Opie Console") );
KeyTrans::loadAll();
for (int i = 0; i < KeyTrans::count(); i++ ) {
KeyTrans* s = KeyTrans::find(i );
@@ -298,6 +305,10 @@ void MainWindow::populateScripts() {
MainWindow::~MainWindow() {
delete m_factory;
manager()->save();
+#ifdef FSCKED_DISTRI
+ FixIt fix;
+ fix.breakIt();
+#endif
}
MetaFactory* MainWindow::factory() {
@@ -449,13 +460,13 @@ void MainWindow::slotClose() {
return;
Session* ses = currentSession();
- owarn << "removing! currentSession " << currentSession()->name().latin1() << "" << oendl;
+ owarn << "removing! currentSession " << currentSession()->name().latin1() << "" << oendl;
/* set to NULL to be safe, if its needed slotSessionChanged resets it automatically */
m_curSession = NULL;
tabWidget()->remove( /*currentSession()*/ses );
/*it's autodelete */
m_sessions.remove( ses );
- owarn << "after remove!!" << oendl;
+ owarn << "after remove!!" << oendl;
if (!currentSession() ) {
m_connect->setEnabled( false );
@@ -573,7 +584,7 @@ void MainWindow::slotOpenButtons( bool state ) {
void MainWindow::slotSessionChanged( Session* ses ) {
- owarn << "changed!" << oendl;
+ owarn << "changed!" << oendl;
if(m_curSession)
if(m_curSession->transferDialog()) m_curSession->transferDialog()->hide();
@@ -582,7 +593,7 @@ void MainWindow::slotSessionChanged( Session* ses ) {
if ( ses ) {
m_curSession = ses;
- odebug << QString("is connected : %1").arg( m_curSession->layer()->isConnected() ) << oendl;
+ odebug << QString("is connected : %1").arg( m_curSession->layer()->isConnected() ) << oendl;
if ( m_curSession->layer()->isConnected() ) {
m_connect->setEnabled( false );
m_disconnect->setEnabled( true );