I have made the following changes intended for :
  CE:UX:MTF / meegotouch-controlpanelapplets

Please review and accept or decline.
BOSS has already run some checks on this request.
See the "Messages from BOSS" section below.

https://build.pub.meego.com//request/show/6744

Thank You,
Marko Saukko

[This message was auto-generated]

---

Request # 6744:

Messages from BOSS:

State: review at 2012-09-15T16:08:29 by bossbot

Reviews:
       accepted by bossbot : Prechecks succeeded.
       new for CE-maintainers : Please replace this text with a review and 
approve/reject the review (not the SR). BOSS will take care of the rest

Changes:
  submit: Project:MTF:UX / meegotouch-controlpanelapplets -> CE:UX:MTF / 
meegotouch-controlpanelapplets
  
changes files:
--------------
--- meegotouch-controlpanelapplets.changes
+++ meegotouch-controlpanelapplets.changes
@@ -0,0 +1,3 @@
+* Thu Sep 13 2012 Philippe De Swer <[email protected]> - 
0.21.13-3
+- Switch USB mode immediately when connected.
+

new:
----
  0006-Switch-mode-immediately-when-we-are-connected.patch

spec files:
-----------
--- meegotouch-controlpanelapplets.spec
+++ meegotouch-controlpanelapplets.spec
@@ -23,6 +23,7 @@
 Patch3:     0002-Fix-landscape-button-layout-in-usbapplet.patch
 Patch4:     0004-Remove-ovi-suite-add-MTP-mode-and-developer-mode-to-.patch
 Patch5:     0005-Control-panel-with-charging-only-option-and-visual-f.patch
+Patch6:     0006-Switch-mode-immediately-when-we-are-connected.patch
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 BuildRequires:  pkgconfig(libresourceqt1)
@@ -201,6 +202,8 @@
 %patch4 -p1
 # 0005-Control-panel-with-charging-only-option-and-visual-f.patch
 %patch5 -p1
+# 0006-Switch-mode-immediately-when-we-are-connected.patch
+%patch6 -p1
 # >> setup
 # << setup
 

other changes:
--------------

++++++ 0006-Switch-mode-immediately-when-we-are-connected.patch (new)
--- 0006-Switch-mode-immediately-when-we-are-connected.patch
+++ 0006-Switch-mode-immediately-when-we-are-connected.patch
@@ -0,0 +1,38 @@
+From 7a614cc7703116768784cc398297dfc6533ba176 Mon Sep 17 00:00:00 2001
+From: Philippe De Swert <[email protected]>
+Date: Thu, 13 Sep 2012 17:27:26 +0300
+Subject: [PATCH] Switch USB mode immediately when we are connected
+
+Signed-off-by: Philippe De Swert <[email protected]>
+---
+ src/usbapplet/usbview.cpp |    7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/usbapplet/usbview.cpp b/src/usbapplet/usbview.cpp
+index 3afd5ca..f87acee 100644
+--- a/src/usbapplet/usbview.cpp
++++ b/src/usbapplet/usbview.cpp
+@@ -244,8 +244,10 @@ UsbView::usbModeActivated (int idx)
+             SYS_STR(usbModeName(newmode)));
+ 
+     m_logic->setDefaultMode (newmode);
+-    /* if we want to switch mode immediately we can use this */
+-    //    m_logic->setMode (newmode);
++    /* if connected we want to switch mode immediately */
++    QmUSBMode::Mode active = m_logic->getMode ();
++    if (active != QmUSBMode::Disconnected && active != QmUSBMode::Undefined)
++        m_logic->setMode (newmode);
+ #endif
+ }
+ 
+@@ -492,6 +494,7 @@ UsbView::buttonToggled (
+ 
+     index = selectedButtonIndex ();
+     if (VALID_USB_MODE(index)) {
++        setSelectedButtonIndex (index);
+         usbModeActivated (index);
+     } else {
+         SYS_WARNING ("Unhandled mode.");
+-- 
+1.7.10.4
+

++++++ meegotouch-controlpanelapplets.yaml
--- meegotouch-controlpanelapplets.yaml
+++ meegotouch-controlpanelapplets.yaml
@@ -14,6 +14,7 @@
     - 0002-Fix-landscape-button-layout-in-usbapplet.patch
     - 0004-Remove-ovi-suite-add-MTP-mode-and-developer-mode-to-.patch
     - 0005-Control-panel-with-charging-only-option-and-visual-f.patch
+    - 0006-Switch-mode-immediately-when-we-are-connected.patch
 Description: |
     Various Controlpanel applets for MeeGo Touch environment:
         - Offline switcher



Reply via email to