aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/LDesktop.cpp
diff options
context:
space:
mode:
authorJesse Smith <jessefrgsmith@yahoo.ca>2014-09-22 22:46:50 -0300
committerJesse Smith <jessefrgsmith@yahoo.ca>2014-09-22 22:46:50 -0300
commit32d773c34698b57544e3aa0f7baf30eac943d7c4 (patch)
tree686cb0fa28030f23cf09e01b93d4c566a1d3efcc /lumina-desktop/LDesktop.cpp
parentTag Lumina version 0.6.3 (diff)
downloadlumina-32d773c34698b57544e3aa0f7baf30eac943d7c4.tar.gz
lumina-32d773c34698b57544e3aa0f7baf30eac943d7c4.tar.bz2
lumina-32d773c34698b57544e3aa0f7baf30eac943d7c4.zip
Applied Debian patch to enable building on 32-bit Linux machines. Project
(.pro) files now support 32-bit and 64-bit Linux builds. Should also build using Clang as well as GCC on Linux. Fixed compiler warning in LDesktop.cpp which might see wrong loop counter used under older compiler.
Diffstat (limited to 'lumina-desktop/LDesktop.cpp')
-rw-r--r--lumina-desktop/LDesktop.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lumina-desktop/LDesktop.cpp b/lumina-desktop/LDesktop.cpp
index c51f5de0..2b661110 100644
--- a/lumina-desktop/LDesktop.cpp
+++ b/lumina-desktop/LDesktop.cpp
@@ -303,12 +303,12 @@ void LDesktop::DesktopPluginRemoved(QString ID){
//qDebug() << "- found ID";
//Delete the plugin container first
QList<QMdiSubWindow*> wins = bgDesktop->subWindowList();
- for(int i=0; i<wins.length(); i++){
- if(wins[i]->whatsThis()==ID || wins[i]->whatsThis().isEmpty()){
+ for(int j=0; j<wins.length(); j++){
+ if(wins[j]->whatsThis()==ID || wins[j]->whatsThis().isEmpty()){
//wins[i]->setWhatsThis(""); //clear this so it knows it is being temporarily removed
- bgDesktop->removeSubWindow(wins[i]->widget()); //unhook plugin from container
- bgDesktop->removeSubWindow(wins[i]); //remove container from screen
- delete wins[i]; //delete old container
+ bgDesktop->removeSubWindow(wins[j]->widget()); //unhook plugin from container
+ bgDesktop->removeSubWindow(wins[j]); //remove container from screen
+ delete wins[j]; //delete old container
}
}
//Now delete the plugin itself
bgstack15