|
From: <pst...@us...> - 2013-10-10 18:56:09
|
Revision: 1031
http://sourceforge.net/p/jazzplusplus/code/1031
Author: pstieber
Date: 2013-10-10 18:56:06 +0000 (Thu, 10 Oct 2013)
Log Message:
-----------
Fixed mac code.
Modified Paths:
--------------
trunk/jazz/src/Project.cpp
Modified: trunk/jazz/src/Project.cpp
===================================================================
--- trunk/jazz/src/Project.cpp 2013-10-09 19:56:35 UTC (rev 1030)
+++ trunk/jazz/src/Project.cpp 2013-10-10 18:56:06 UTC (rev 1031)
@@ -292,15 +292,18 @@
//------------------
// Macintosh Drivers
//------------------
- mpMidiPlayer = new JZPortMidiPlayer(this);
- mpMidiPlayer.DeviceSelectionDialog();
+ JZPortMidiPlayer* pPortMidiPlayer = new JZPortMidiPlayer(this);
+ pPortMidiPlayer->DeviceSelectionDialog();
- if (!mpMidiPlayer->IsInstalled())
+ if (!pPortMidiPlayer->IsInstalled())
{
- delete mpMidiPlayer;
- mpMidiPlayer = 0;
+ delete pPortMidiPlayer;
cout << "Jazz++ will start with no play/record ability." << endl;
}
+ else
+ {
+ mpMidiPlayer = pPortMidiPlayer;
+ }
#endif // __WXMAC__
if (!mpMidiPlayer)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|