X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d567bc3aea444ff3bc70e4180faaaa1f124be93b..ba6f7b0232b030b2b3eda4fc126cbc3aba05e5d2:/src/dolphincontextmenu.cpp diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 3be03dbec..4c04170d6 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * ***************************************************************************/ #include "dolphincontextmenu.h" @@ -91,12 +91,9 @@ void DolphinContextMenu::openViewportContextMenu() createNewMenu->insertSeparator(); - QAction* action = 0; - - Q3PtrListIterator fileGrouptIt(dolphin->fileGroupActions()); - while ((action = fileGrouptIt.current()) != 0) { - createNewMenu->addAction(action); - ++fileGrouptIt; + QLinkedListIterator fileGrouptIt(dolphin->fileGroupActions()); + while (fileGrouptIt.hasNext()) { + createNewMenu->addAction(fileGrouptIt.next()); } // TODO: not used yet. See documentation of Dolphin::linkGroupActions()