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

List:       kde-commits
Subject:    branches/work/akonadi-ports/kdepim/kmail
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2010-01-14 14:38:44
Message-ID: 1263479924.569886.23094.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1074670 by tmcguire:

Add warning message at startup that you shouldn't use this version.


 M  +22 -0     kmkernel.cpp  


--- branches/work/akonadi-ports/kdepim/kmail/kmkernel.cpp #1074669:1074670
@@ -109,6 +109,28 @@
   mIdentityManager(0), mConfigureDialog(0), mMailService(0),
   mContextMenuShown( false )
 {
+#ifdef __GNUC__
+#warning Remove before the 4.5 release
+#endif
+  if ( KMessageBox::questionYesNo(
+        0,
+        i18n( "You are attempting to start an <b>unstable development version</b> of \
KMail.<br>" +              "KMail is currently being ported to Akonadi and is under \
heavy development. " +              "Do not use this version for real mails, you will \
<b>lose data</b>. If you use this " +              "version now, your mails will not \
be correctly migrated, and you will not be able to " +              "migrate them \
afterwards.<br>" +              "Because of the current development, there are many \
bugs and regressions as well as " +              "missing features. Please do not \
report any bugs for this version yet.<br><br>" +              "If you want to use \
KMail for real mails, please use the version from the KDE 4.4 branch instead." ), +   \
i18n( "Unstable Development version of KMail" ), +        KGuiItem( i18n( "Lose Data" \
) ), +        KStandardGuiItem::cancel(),
+        "UseAtYourOwnRiskWarning",
+        KMessageBox::Dangerous )
+      == KMessageBox::No ) {
+    kWarning() << "Exiting after development version warning.";
+    exit(42);
+  }
   mFolderCollectionMonitor = new FolderCollectionMonitor( this );
   mAgentManager = new KMAgentManager( this );
   kDebug();


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

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