summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
authorharlekin <harlekin>2003-03-21 23:38:17 (UTC)
committer harlekin <harlekin>2003-03-21 23:38:17 (UTC)
commitab8cb739c666f5f22049258a4bcbb06d1e1ad0c4 (patch) (unidiff)
tree82690d415f22ffe554d4fcfe359ee8121b90d888 /noncore/apps/opie-console/mainwindow.cpp
parent43b0fded770624c907aae043e88449f80040d7df (diff)
downloadopie-ab8cb739c666f5f22049258a4bcbb06d1e1ad0c4.zip
opie-ab8cb739c666f5f22049258a4bcbb06d1e1ad0c4.tar.gz
opie-ab8cb739c666f5f22049258a4bcbb06d1e1ad0c4.tar.bz2
even better then poping up an error dialog: make a new profile
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index a6fc30b..3acbfad 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -410,12 +410,19 @@ void MainWindow::slotTerminate() {
410 /* FIXME move to the next session */ 410 /* FIXME move to the next session */
411} 411}
412 412
413
414
415
416
417
413void MainWindow::slotQuickLaunch() { 418void MainWindow::slotQuickLaunch() {
414 Profile prof = manager()->profile( "default" ); 419 Profile prof = manager()->profile( "default" );
415 if ( prof.name() == "default" ) { 420 if ( prof.name() == "default" ) {
416 create( prof ); 421 create( prof );
417 } else { 422 } else {
418 QMessageBox::warning(this, tr("Failure"),tr("please configure one profile named \"default\"")); 423 Profile newProf = Profile( "default", "console", "default" , 0, 3, 0 );
424 newProf.setAutoConnect( true );
425 create( newProf );
419 } 426 }
420 427
421} 428}