[tor-commits] [vidalia/alpha] Fix typo: It's detach, not dettach

chiiph at torproject.org chiiph at torproject.org
Sat Jul 2 21:59:21 UTC 2011


commit 2e4fbffbe0e0593712e964f5710a6c970195514b
Author: Tomas Touceda <chiiph at gentoo.org>
Date:   Mon May 23 14:07:49 2011 -0300

    Fix typo: It's detach, not dettach
---
 src/vidalia/MainWindow.cpp    |    8 ++++----
 src/vidalia/MainWindow.h      |    4 ++--
 src/vidalia/VAttachButton.cpp |    2 +-
 src/vidalia/VAttachButton.h   |    2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index 22949b0..6e16ee4 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -1506,7 +1506,7 @@ MainWindow::attachTab()
 }
 
 void
-MainWindow::dettachTab()
+MainWindow::detachTab()
 {
   VAttachButton *but = qobject_cast<VAttachButton *>(sender());
   VidaliaTab *tab = but->getTab();
@@ -1518,7 +1518,7 @@ MainWindow::dettachTab()
 
   QString key = _tabMap.at(index);
   _tabMap.removeAll(key);
-  _dettachedTabMap << key;
+  _detachedTabMap << key;
 }
 
 void
@@ -1573,8 +1573,8 @@ MainWindow::addTab(VidaliaTab *tab)
 
   connect(atb, SIGNAL(attachTab()),
           this, SLOT(attachTab()));
-  connect(atb, SIGNAL(dettachTab()),
-          this, SLOT(dettachTab()));
+  connect(atb, SIGNAL(detachTab()),
+          this, SLOT(detachTab()));
   /** The new tab is added to the last position */
   _tabMap << tab->getTitle();
   connect(tab, SIGNAL(helpRequested(QString)),
diff --git a/src/vidalia/MainWindow.h b/src/vidalia/MainWindow.h
index 2bfd02f..722a217 100644
--- a/src/vidalia/MainWindow.h
+++ b/src/vidalia/MainWindow.h
@@ -152,7 +152,7 @@ private slots:
   void delTab(int index = -1);
 
   void attachTab();
-  void dettachTab();
+  void detachTab();
 
 #if defined(USE_AUTOUPDATE)
   /** Called when the user clicks the 'Check Now' button in the General
@@ -290,7 +290,7 @@ private:
   MessageLog *_messageLog; /**< Message log that displays a more detailed log from Tor */
   NetViewer _netViewer; /**< Network map that draws circuits */
   QStringList _tabMap; /**< Map to handle opened tabs */
-  QStringList _dettachedTabMap;
+  QStringList _detachedTabMap;
   BandwidthGraph *_graph; /**< Graph that draws bandwidth usage */
 
   PluginEngine *_engine;
diff --git a/src/vidalia/VAttachButton.cpp b/src/vidalia/VAttachButton.cpp
index 80e512b..42a4b3e 100644
--- a/src/vidalia/VAttachButton.cpp
+++ b/src/vidalia/VAttachButton.cpp
@@ -30,7 +30,7 @@ void
 VAttachButton::toggleAttach()
 {
   if(_attached) {
-    emit dettachTab();
+    emit detachTab();
   } else {
     emit attachTab();
   }
diff --git a/src/vidalia/VAttachButton.h b/src/vidalia/VAttachButton.h
index e1ad3de..bdced09 100644
--- a/src/vidalia/VAttachButton.h
+++ b/src/vidalia/VAttachButton.h
@@ -17,7 +17,7 @@ class VAttachButton : public QPushButton {
 
   signals:
     void attachTab();
-    void dettachTab();
+    void detachTab();
 
   public slots:
     void toggleAttach();





More information about the tor-commits mailing list